Skip to content

Instantly share code, notes, and snippets.

@explorerleslie
Last active January 4, 2016 12:40
Show Gist options
  • Select an option

  • Save explorerleslie/8623307 to your computer and use it in GitHub Desktop.

Select an option

Save explorerleslie/8623307 to your computer and use it in GitHub Desktop.
How to deploy an existing GitHub repository to Heroku from Nitrous.io
These links:
http://help.nitrous.io/heroku/ and
http://help.nitrous.io/heroku-rails/
are good, but they're missing some information for deploying simple apps to Heroku.
This assumes that you already have Git and GitHub set up on Nitrous.io and you've been
pushing your code to GitHub throughout development.
-Do the first five steps of this page: http://help.nitrous.io/heroku/. Skip the rest
of the steps.
-Do the steps under "Deploy to Heroku" on this page: http://help.nitrous.io/heroku-rails/.
Note that if you want to give your app a custom name (as opposed to the random name that
is generated), you can run "heroku create [appname]". App names must be unique so you'll
get an error if the name is already taken. Then do "git push heroku master".
-After Heroku deployment, you need to run a few rake commands if you have a database
component to your Rails app:
- heroku run rake db:migrate
- heroku run rake db:seed (if you're using faker for test data in production)
@wolframpant
Copy link
Copy Markdown

The second link here, http://help.nitrous.io/heroku-rails/, doesn't seem to link to anything. I have my github repo set up and pushed, and I've already deployed an earlier version of my repo to heroku, so it already has an app name and all that. but when I type in git push heroku master in nitrous, it can't find heroku. Sigh . . . Thanks for this page, though! It confirms what I'm finding, that there aren't really instructions for my situation on the web. Yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment