How To Run Ionic Project On Heroku

You first have to install express server in your ionic project.

npm install express --save

Then create a server.js file:

var express = require('express'),

app = express();
app.use(express.static('www'));
app.set('port', process.env.PORT || 5000);

app.listen(app.get('port'), function () {
    console.log('Express server listening on port ' + app.get('port'));
});

Add an app.json file with some data

{
    "name": "app name",
    "description": "A simple Ionic app for Heroku",
    "logo": "http://pathToYourLogo.png",
    "keywords": ["ionic", "devdactic", "whatever"]
}

Then when you deploy your app to Heroku (preferably with dropbox) it will start as an express server.