Locked lesson.
About this lesson
Exercise files
Download this lesson’s exercise file.
Building a Resume Website - Push Live Code to Heroku.docx57.8 KB
Quick reference
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.
Instructions
If you haven't yet, sign up for a free account at Heroku.com
To set up Heroku in our app, from the git bash terminal type this:
heroku login
Then log in with your Heroku credentials.
Next we need to add ssh keys, type:
heroku keys:add
After that we need to create an app, type:
heroku create
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"
git push
next push your code to Heroku.Type:
git push heroku master
Hints & tips
- 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.