Subscriber only lesson.
Sign up to this course to view this lesson.
About this lesson
Download this lesson’s exercise file.Building a Resume Website - Push Live Code to Heroku.docx
Building a Resume Website - Push Live Code to Heroku
Now it's time to push our code up to a professional web hosting service - Heroku.
When to use
Whenever you want to host your site, you need a professional web hosting service.
If you haven't yet, sign up for a free account at Heroku.com
To set up Heroku in our app, from the command line terminal at C9 type this:
Then log in with your Heroku credentials.
Next we need to add ssh keys, type:
After that we need to create an app, type:
Now rename your app:
heroku rename *PICK NAME*
change *PICK NAME* to whatever name you want to choose.
Next, rename your index.html file to index.php
Now we need to save our code to version control:
git add .
git commit -am "final commit"
next push your code to Heroku.Type:
git push heroku master
Hints & tips
- Remember, the dev web server at C9 is not powerful enough to be used as a real web hosting service.
- Heroku.com offers a free tier that we can use.
- Remember to save your code to git before pushing it to Heroku!
Lesson notes are only available for subscribers.