node.js - Deploying Express app to Heroku -


i trying deploy express application heroku keep getting error "push rejected, no cedar-supported app detected", made sure define package.json , procfile tutorial using npm init.

here package.json file:

{   "name": "classmatch",   "version": "0.0.1",   "description": "compare schedules",   "main": "app.js",   "scripts": {     "test": "echo \"error: no test specified\" && exit 1"   },   "repository": {     "type": "git",     "url": "https://github.com/jzone3/classmatch.git"   },   "keywords": [     "example",     "heroku"   ],   "author": "paras modi, jared zoneraich",   "license": "bsd-2-clause",   "bugs": {     "url": "https://github.com/jzone3/classmatch/issues"   },   "homepage": "https://github.com/jzone3/classmatch",   "dependencies": {     "mongoose": "~3.8.11",     "express": "~3.5.1",     "hjs": "~0.0.6"   },   "devdependencies": {} } 

and here procfile, example had:

web: node app.js 

my files setup this:

/ -node_modules/ -public/ -views/ -app.js -favicon.ico -package.json -procfile -readme.md 


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -