Static html application on Heroku
I am wondering if there is a way to deploy a static html app to hero without masking it as a php app.
I am working using the following answer. Is it possible to load simple html and javascript structure in hero?
However, it seems strange to me that you cannot just submit a direct html application. Especially since for general use, a simple html app acts as a wrapper for a SPA
Does anyone know how to do this. I get an error Heroku push rejected, no Cedar-supported app detected
if I try without the php masking trick ...
source to share
The way I did it is simply using the node.js build.
Just throw this in index.js and put all your files in / shared folder in your main application folder.
var express = require('express');
var app = express();
app.set('port', (process.env.PORT || 5000));
app.use(express.static(__dirname + '/public'));
app.listen(app.get('port'), function() {
console.log("Node app is running at localhost:" + app.get('port'))
});
Make Procfile with
web: node index.js
And create a basic package file which can be done w / npm
I have an angularjs site that works with all my dependencies in / public
source to share