How To: Heroku Deployments
Some deployment steps for Heroku:
To deploy static html/css project:
- Create an index.php file with the following content:
<?php include_once(“home.html”); ?>
2) Rename your main or index.html to home.html
3) Deploy app
To deploy node.js project:
- Ensure package.json has a start script and deploy app.
e.g. “scripts”: {
“test”: “echo ”Error: no test specified” && exit 1″,
“start”: “node app.js”
},
To deploy to Heroku:
- Install Heroku toolbelt and login account
- Run
heroku create
in a git project - Run
heroku apps:rename <newProjectName>
to rename your project (optional) - Run
git push heroku master
to push project to heroku