1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 07:08:01 +00:00

Add SSH Into Heroku Server Hosting App as a Heroku TIL

This commit is contained in:
jbranchaud
2021-11-29 16:04:03 -06:00
parent c09235f0cd
commit db33862eeb
2 changed files with 19 additions and 1 deletions

View File

@@ -0,0 +1,17 @@
# SSH Into Heroku Server Hosting App
Heroku hosts and deploys your app on a remote server. One of Heroku's primary
offerings is that it abstracts away the details of that server. You generally
don't need to think about it. Instead you can use the Heroku CLI to interact
with it indirectly.
There will inevitably be a time when you need to access that server directly.
Heroku gives you a way to do this with their CLI through
[`ps:exec`](https://devcenter.heroku.com/articles/exec).
```bash
$ heroku ps:exec --app my-app
```
This will connect you to an SSH session with the server that the app is running
on.