References
[Other tricks] htpasswd (for PHP apps)
Create an .htaccess
file in the webroot:
AuthUserFile /app/www/.htpasswd
AuthType Basic
AuthName "Restricted Access"
Require valid-user
Create a .htpasswd
file:
$ htpasswd -c .htpasswd [username]
See: gist.github.com
[Domains] Wildcard domains
heroku addons:add wildcard_domains
*.yourdomain.com => heroku.com
[Domains] domains
- Custom domains
Add both!
heroku domains:add example.com
heroku domains:add www.example.com
Removing
heroku domains:clear
heroku domains:remove example.com
See: Custom domains (devcenter.heroku.com)
[Processes] run
- Running tasks
heroku run bash
heroku run console # Rails console
heroku run rake assets:precompile
[Processes] restart
heroku restart
[Processes] ps
- Managing processes
heroku ps # list
heroku ps:scale web=1 # spawn more dynos
Processes
maintenance
heroku maintenance:on
heroku maintenance:off
apps
- Applications
heroku apps # list
heroku apps:create [NAME]
heroku apps:destroy --app APP
heroku apps:info
heroku apps:open # open in browser
heroku apps:rename NEWNAME
Top comments (0)