deploy to heroku - makingsensetraining/mean-seed-blog GitHub Wiki
-
setup new app in heroku
-
create a new CI server with deploy to heroku ex: drone.io
-
register ssh-key: register ssh-key from drone.io deploy
heroku keys:add my-project-key.key
- clone the app:
heroku git:clone -a myapp
- if you need execute grunt task in heroku use: heroku grunt build pack
heroku config:add BUILDPACK_URL=https://github.com/mbuchetics/heroku-buildpack-nodejs-grunt.git
- set environment:
heroku config:set NODE_ENV=production
- for database register environemt URI:
heroku config:set MONGOLAB_URI=mongodb://<dbuser>:<dbpassword>@ds061238.mongolab.com:61238/meanp-seed
- set one dyno running the
web process type
heroku ps:scale web=1