Friday 15 May 2015

html5 - Static html application in Heroku -



html5 - Static html application in Heroku -

i wondering if there way deploy static html application heroku without disguising php application.

i have working using next answer. is possible upload simple html , javascript file construction heroku?

however find odd can't send straight html application. since it's mutual utilize case have simple html app deed shell spas

anyone know of way this. error heroku force rejected, no cedar-supported app detected if seek without php disguise trick...

the way have done using node.js build.

just throw in index.js , set files in /public folder under main app 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 running @ localhost:" + app.get('port')) });

make procfile

web: node index.js

and create basic bundle file can done w/ npm

i have angularjs site running with dependencies in /public

html5 heroku cloud

No comments:

Post a Comment