Although our sites are not yet dynamic, we want you to start getting used to deploying your applications on Heroku.
We have learned how to host static sites using Github Pages, now we're going to host our sites on a server that allows us to process dynamic sites.
We're going to create a sample project and deploy the project to Heroku.
Note: Since we're not using a dynamic site (ie, we're not processing any data on the server), we'll need to use a small hack to make it work in the mean time.
Also note that the reference to "hack" in this context doesn't mean we're trying to break into the NSA, but rather we're not using a roundabout method to make something work.
What you'll need:
Steps to take:
continued
<?php include_once("index.html"); ?>{}continued
Then run the following command in bash. git remote -v. Point out that this command listed out the places where git can send your code. Initially, it's just GitHub
Then run the command heroku create. This command will create an app on the Heroku website and also automatically add on a new remote path in git.
So now if you re-run the command git remote -v, you will see listed a new set of Heroku destinations.
git add -A
git commit -m "Add files to GitHub"
git push origin mastercontinued
Common Issues and Solutions
https://goo.gl/8Pyd59