Skip to content

Instantly share code, notes, and snippets.

@ouadie-lahdioui
Last active February 27, 2019 19:00
Show Gist options
  • Save ouadie-lahdioui/6203520b67f9566713e605557a23a512 to your computer and use it in GitHub Desktop.
Save ouadie-lahdioui/6203520b67f9566713e605557a23a512 to your computer and use it in GitHub Desktop.
# Deploy
heroku buildpacks
heroku buildpacks:clear
heroku buildpacks:set -a cognito-jackpot-web-app heroku/nodejs
heroku buildpacks:set -a cognito-jackpot-web-app https://github.com/Pagedraw/heroku-buildpack-select-subdir
heroku config:add BUILDPACK='packages/web-app=https://github.com/heroku/heroku-buildpack-nodejs' -a cognito-jackpot-web-app
heroku git:remote -a cognito-jackpot-web-app
git push heroku master
# Commands
heroku open
heroku ps : see the new process type running
heroku logs
heroku logs --tail
heroku restart -a cognito-jackpot-web-app
heroku local web : start the application locally
heroku run bash : run the bash command to open a shell on the server
heroku config:set TIMES=2 : Define config vars
heroku config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment