Created
March 14, 2012 23:22
-
-
Save coreyhaines/2040338 to your computer and use it in GitHub Desktop.
Running a worker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source :rubygems |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hipchat: https://www.hipchat.com/gNWgTiqIC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bot: bundle exec ruby run_bot.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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