Subscriber only lesson.
Sign up to this course to view this lesson.
About this lesson
Set up a free Heroku.com account to push production code.
Download this lesson’s exercise file.Using Heroku For Production.docx
Using Heroku for Production
In this course we'll be using Heroku for free web hosting of our app.
When to use
Whenever you create an app for the public to use, you'll need web hosting of some kind.
C9.io offers development hosting, but it isn't appropriate as production level web hosting. For that we need something else. Heroku is what we'll be using.
To make sure Heroku is installed at C9, type:
To sign into Heroku from your C9 workspace, type:
To add your SSH keys to heroku, from your C9 workspace, type:
To create an app on Heroku from your C9 workspace, type:
To push our code up to Heroku, type this command from the C9 workspace terminal:
git push heroku master
To rename your Heroku app, type:
heroku rename NEWAPPNAME
Hints & tips
Lesson notes are only available for subscribers.