1 Go to the app directory && heroku login
$ cd app_name
$ heroku login --interactive
2 ssh Specify the application you want to connect to
$ heroku git:remote --app app_name
3 Connect to server with ssh
$ heroku run bash
1 If you can confirm the running one-off processes as shown below after executing the command, You need to stop the process.
$ heroku ps
Free dyno hours quota remaining this month: 978h 53m (97%)
Free dyno usage for this app: 20h 4m (2%)
For more information on dyno sleeping and how to upgrade, see:
https://devcenter.heroku.com/articles/dyno-sleeping
=== run: one-off processes (1)
run.2767 (Free): up 2018/11/23 21:06:53 +0900 (~ 9m ago): bash
=== web (Free): node server.js (1)
web.1: up 2018/11/23 21:12:24 +0900 (~ 4m ago)
2 Use the following command to specify the process ID and terminate the process.
$ heroku ps:stop run.2767(Process ID)
Recommended Posts