2016-10-16 13:55:03 +03:00
|
|
|
# heroku
|
|
|
|
|
|
|
|
> Create and manage Heroku apps from the command line.
|
|
|
|
|
|
|
|
- Login to your heroku account:
|
|
|
|
|
|
|
|
`heroku login`
|
|
|
|
|
|
|
|
- Create a heroku app:
|
|
|
|
|
|
|
|
`heroku create`
|
|
|
|
|
|
|
|
- Show logs for an app:
|
|
|
|
|
|
|
|
`heroku logs --app {{app_name}}`
|
|
|
|
|
2016-10-16 13:56:22 +03:00
|
|
|
- Run a one-off process inside a dyno (Heroku virtual machine):
|
2016-10-16 13:55:03 +03:00
|
|
|
|
|
|
|
`heroku run {{process_name}} --app {{app_name}}`
|
|
|
|
|
2016-10-16 13:56:22 +03:00
|
|
|
- List dynos (Heroku virtual machines) for an app:
|
2016-10-16 13:55:03 +03:00
|
|
|
|
|
|
|
`heroku ps --app {{app_name}}`
|
|
|
|
|
|
|
|
- Permanently destroy an app:
|
|
|
|
|
|
|
|
`heroku destroy --app {{app_name}}`
|