- https://github.com/swanson/stringer
- looming EOL for BIG_FREE_READER
- deployable rss reader
git clone git://github.com/swanson/stringer.git cd stringer heroku create git push heroku master heroku config:set SECRET_TOKEN=`openssl rand -hex 20` heroku run rake db:migrate heroku restart heroku addons:add scheduler heroku addons:open scheduler
- https://github.com/geemus/superstringer
- automagic stringer on Heroku
heroku = Excon.new(
'https://api.heroku.com',
:headers => {
"Accept" => "application/vnd.heroku+json; version=3",
"Authorization" => "Basic #{[':' << password].pack('m').delete("\r\n")}",
"Content-Type" => "application/json"
}
)
heroku.post(:path => "/apps")
heroku.patch(
:body => { "SECRET_TOKEN" => SecureRandom.hex(20) }.to_json,
:path => "/apps/#{app_data['id']}/config-vars"
)
run_data = JSON.parse(heroku.post(
:body => {
"attach" => true,
"command" => "rake db:migrate"
}.to_json,
:path => "/apps/#{app_data['id']}/dynos"
).body)
Rendezvous.start(
:url => run_data['attach_url']
)
heroku.delete(:path => "/apps/#{app_data['id']}/dynos")
heroku.post(
:body => { "plan" => { "name" => "scheduler:standard" } }.to_json,
:path => "/apps/#{app_data['id']}/addons"
)
Alpha hack-a-thon release!
- redirect to Heroku
- recieve redirect back
- convert to token
$ curl -n -X POST https://api.heroku.com/oauth/authorizations \ -H "Accept: application/vnd.heroku+json; version=3" \ -H "Content-Type: application/json" \ -d "{\"description\":\"sample authorization\"}"