#9. Some useful heroku commands

Heroku commands

sudo snap install --classic heroku

heroku login

heroku create

git config --list --local | grep heroku

git push heroku main

heroku run rake db:migrate

heroku apps:rename kamb2017

heroku ps:scale web=1

heroku ps

heroku open

heroku logs

heroku logs --tail

heroku run rails console

heroku config - view 

heroku config:set MY_PASS=secret - set

heroku config:get MY_PASS - view

heroku config:unset MY_PASS - remove

heroku config -a rk-rails-app - list all environment variables

heroku apps - list all the heroku apps

 heroku config -a rk-rails-app --json - list all environment variables in json format

heroku run -a rk-rails-app printenv - print environment variables


Comments

Popular posts from this blog

#6. Fetch time in rails

#8. nginx+puma deployment using capistrano

#21. Rails scope