Heroku commands - quick reference


# To create app:
heroku create <app_name>

# To destroy your app:
heroku destroy <app_name>


# Show configuration variables such as DATABASE_URL, HEROKU_POSTGRESQL_<color>_URL
heroku config

# Set time zone config variable
heroku config:add TZ="Asia/Kolkata"

# Set path config variable (not needed by default)
heroku config:add PATH=/app/bin:/app/vendor/bundle/ruby/2.0.0/bin:/usr/local/bin:/usr/bin:/bin


# Open app in browser:
heroku open

# Use one "web" dyno:
heroku ps:scale web=1
# Show count of dynos
heroku ps
# Debug logs
heroku logs
heroku logs --source app -t

# Linux shell console of the dyno/instance machine!
heroku run bash
# Show usage details of Postgress database (Data size, number of tables & rows, etc)
heroku pg:info


# irb console
heroku run rails console

heroku rake db:migrate
heroku rake db:seed

No comments:

Post a Comment