Ember-app-kit deployment to dokku

December 10, 2013 3.4k views
Hi, After deploying to dokku an ember ember-app-kit, I'am getting Cannot GET / in the browser. here is my Procfile : web: ./node_modules/grunt-cli/bin/grunt expressServer:dist:keepalive Here is my dependencies in my package.json "dependencies":{ "express": "~3.4.2", "jsdom": "*", "lockfile": "~>0.3.0", "bower": "~1.2.7", "grunt": "~0.4.2", "grunt-cli": "~0.1.9", "load-grunt-config": "git://github.com/Pradeek/load-grunt-config.git", "grunt-contrib-watch": "~0.5.3", "grunt-contrib-copy": "~0.4.1", "grunt-contrib-concat": "~0.3.0", "grunt-contrib-clean": "~0.4.1", "grunt-contrib-jshint": "~0.7.2", "grunt-contrib-uglify": "~0.2.2", "grunt-contrib-cssmin": "~0.6.1", "grunt-preprocess": "~3.0.1", "grunt-es6-module-transpiler": "~0.5.1", "grunt-concat-sourcemap": "~0.3.0", "grunt-concurrent": "~0.3.1", "grunt-usemin": "~0.1.12", "grunt-rev": "~0.1.0", "grunt-ember-templates": "~0.4.18", "grunt-karma": "~0.5", "karma": "~0.9.4", "karma-qunit": "~0.0.3", "karma-coverage": "~0.0.3", "karma-phantomjs-launcher": "~0.0.2", "express-namespace": "~0.1.1", "request": "~2.27.0" "scripts": { "start": "grunt server", "build": "grunt build:debug", "test": "grunt test:ci", "postinstall": "bower install;grunt dist" } Need help! Thanks in advance.
4 Answers
You need to start express. Try replacing ./node_modules/grunt-cli/bin/grunt with ./node_modules/grunt-cli/bin/grunt start
Hi, After replacing with this ./node_modules/grunt-cli/bin/grunt start in the Procfile
Im getting this error logs from the server Warning: Task "start" not found. Use --force to continue.

However it successfully deploy and run at heroku using this in my procfile
web: ./node_modules/grunt-cli/bin/grunt expressServer:dist:keepalive

Here is the repo

Thank you in advance!
I looked at a few files and apparently the server only defines routes for /api/*, so your app is running but you're getting that error simply because you're not defining any routes other than /api/* (which means that the route "/" is not defined).

Are you sure it on heroku?
Sure its running at heroku, http://serene-shelf-4487.herokuapp.com/

The /api/* is only for the development mode, only a fake stub.

Have another answer? Share your knowledge.