node.js - How do I deploy an Angular.js app? -


this may stupid question, i'm wondering platform should use deploy angular.js app? tried using heroku got "no cedar-supported app detected" error. thoughts?

update

i'm trying serve heorku node.js application, still can't seem working. there's web-server.js file in root directory of application , reference in procfile here:

web: node web-server.js 

and here's package.json file, in root directory:

{ "name": "medicare-data", "version": "0.0.1", "dependencies": { }, "engines": {     "node": "0.10.x",     "npm": "1.2.x" }, "respository": "medicare-data", "author": "sararob" } 

i'm getting "slug compilation error" in heroku logs. thoughts on why might not working?

you can run angular app on heroku if served node.js application. usually, when start working angular seed, there node webserver script in project. believe if there package.json file in root, heroku detect , run node.js application. i'll come , update answer more detail shortly.

update

from heroku docs (and no expert), has passage after deploy section: https://devcenter.heroku.com/articles/nodejs#visit-your-application

which tells make sure have 1 dyno running. can either through web app under settings of app or can run this:

$ heroku ps:scale web=1 

to see if process running, do

$ heroku ps === web: `node web.js` web.1: 10s 

Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -