Skip to content

Instantly share code, notes, and snippets.

@coreyhaines
Created March 14, 2012 23:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coreyhaines/2040338 to your computer and use it in GitHub Desktop.
Save coreyhaines/2040338 to your computer and use it in GitHub Desktop.
Running a worker
gem install heroku
heroku create <appname> --stack cedar
# add to git
git add .
git commit -m "Add my APP"
bundle install
# add the Gemfile.lock to your git repo
git add .
git commit -m "Adding Gemfile.lock"
git push heroku master
heroku scale bot=1
heroku logs --app <appname>
# if you are getting the (public key) problem pushing to heroku
# try this, but don't think it is the problem. Coincidence?
ssh keygen -t rsa
# accept all the prompts
# re-add ssh key to heroku
heroku keys:add
source :rubygems
Hipchat: https://www.hipchat.com/gNWgTiqIC
bot: bundle exec ruby run_bot.rb
$stdout.sync = true
puts "*"*10
puts "HELLO WORLD"
puts "*"*10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment