From db33862eeba535aad7db5d44a0c033adb39428bf Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Mon, 29 Nov 2021 16:04:03 -0600 Subject: [PATCH] Add SSH Into Heroku Server Hosting App as a Heroku TIL --- README.md | 3 ++- heroku/ssh-into-heroku-server-hosting-app.md | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 heroku/ssh-into-heroku-server-hosting-app.md diff --git a/README.md b/README.md index 92e1a07..7a6d66d 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ pairing with smart people at Hashrocket. For a steady stream of TILs, [sign up for my newsletter](https://crafty-builder-6996.ck.page/e169c61186). -_1166 TILs and counting..._ +_1167 TILs and counting..._ --- @@ -333,6 +333,7 @@ _1166 TILs and counting..._ - [Deploy A Review App To A Different Stack](heroku/deploy-a-review-app-to-a-different-stack.md) - [Set And Show Heroku Env Variables](heroku/set-and-show-heroku-env-variables.md) +- [SSH Into Heroku Server Hosting App](heroku/ssh-into-heroku-server-hosting-app.md) ### HTML diff --git a/heroku/ssh-into-heroku-server-hosting-app.md b/heroku/ssh-into-heroku-server-hosting-app.md new file mode 100644 index 0000000..685573e --- /dev/null +++ b/heroku/ssh-into-heroku-server-hosting-app.md @@ -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.