同步4sq签到至微博
程序由Sinatra编写 数据可保存于Postgres或SQLite3
- 重命名
config-example.yml
到config.yml
并填入申请的API信息 - 执行
bundle install
安装依赖库 - 执行
rake db:migrate
建立表结构 - 执行
ruby app.rb
访问http://localhost:4567
- Foursquare:
http://your_host.com/redirect_uri
- Weibo:
http://your_host.com/wei_redirect
- Foursquare Push:
https://your_host.com/handle_push
cd foursq2weibo
heroku git:remote -a foursqtoweibo
git push -u heroku master
heroku addons:add heroku-postgresql:hobby-dev
heroku rake db:migrate