2016-10-16 11:55:03 +01:00
|
|
|
# heroku
|
|
|
|
|
2021-05-20 21:13:41 +01:00
|
|
|
> Create and manage Heroku apps from the command-line.
|
2019-06-03 01:06:36 +01:00
|
|
|
> More information: <https://www.heroku.com/>.
|
2016-10-16 11:55:03 +01:00
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- Log in to your Heroku account:
|
2016-10-16 11:55:03 +01:00
|
|
|
|
|
|
|
`heroku login`
|
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- Create a Heroku app:
|
2016-10-16 11:55:03 +01:00
|
|
|
|
|
|
|
`heroku create`
|
|
|
|
|
|
|
|
- Show logs for an app:
|
|
|
|
|
|
|
|
`heroku logs --app {{app_name}}`
|
|
|
|
|
2016-10-16 11:56:22 +01:00
|
|
|
- Run a one-off process inside a dyno (Heroku virtual machine):
|
2016-10-16 11:55:03 +01:00
|
|
|
|
|
|
|
`heroku run {{process_name}} --app {{app_name}}`
|
|
|
|
|
2016-10-16 11:56:22 +01:00
|
|
|
- List dynos (Heroku virtual machines) for an app:
|
2016-10-16 11:55:03 +01:00
|
|
|
|
|
|
|
`heroku ps --app {{app_name}}`
|
|
|
|
|
|
|
|
- Permanently destroy an app:
|
|
|
|
|
|
|
|
`heroku destroy --app {{app_name}}`
|