Skip to content

Instantly share code, notes, and snippets.

@rehashism
Last active October 22, 2015 10:26
Show Gist options
  • Save rehashism/6f107f3a1caf1d968b7a to your computer and use it in GitHub Desktop.
Save rehashism/6f107f3a1caf1d968b7a to your computer and use it in GitHub Desktop.

suspenders app

generate heroku app

generate app

suspenders appname --heroku true --github organization/project
cd appname

git add .
git commit -m "Initial commit"

add root view

generate home view and controller

start the local server

cp .sample.env .env
foreman start -p 8000

how to check env in heroku

heroku config --remote staging 

smtp setting

heroku config:add SMTP_ADDRESS="smtp.gmail.com" --remote staging
heroku config:add SMTP_DOMAIN="gmail.com" --remote staging
heroku config:add SMTP_PASSWORD="*********" --remote staging
heroku config:add SMTP_USERNAME="rehashism" --remote staging

setting .env

heroku config:add HOST="rehash-staging.herokuapp.com" --remote staging
heroku config:add ASSET_HOST="rehash-staging.herokuapp.com" --remote staging
heroku config:add EXECJS_RUNTIME="Node" --remote staging

only for staging

heroku config:add EMAIL_RECIPIENTS="[email protected]" --remote staging

to deploy

bin/deploy

setting from another computer

bin/setup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment