How To: Heroku Deployments

Some deployment steps for Heroku:

To deploy static html/css project:

  1. 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:

  1. 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:

  1. Install Heroku toolbelt and login account
  2. Run heroku create in a git project
  3. Run heroku apps:rename <newProjectName> to rename your project (optional)
  4. Run git push heroku master to push project to heroku