mirror of
https://github.com/jbranchaud/til
synced 2026-01-19 06:58:02 +00:00
Compare commits
3 Commits
5f6d236be4
...
da3daab902
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
da3daab902 | ||
|
|
25b5677260 | ||
|
|
295fe153ad |
@@ -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).
|
For a steady stream of TILs, [sign up for my newsletter](https://crafty-builder-6996.ck.page/e169c61186).
|
||||||
|
|
||||||
_1438 TILs and counting..._
|
_1439 TILs and counting..._
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -392,6 +392,7 @@ _1438 TILs and counting..._
|
|||||||
|
|
||||||
- [Deploy A Review App To A Different Stack](heroku/deploy-a-review-app-to-a-different-stack.md)
|
- [Deploy A Review App To A Different Stack](heroku/deploy-a-review-app-to-a-different-stack.md)
|
||||||
- [Diagnose Problems In A Heroku Postgres Database](heroku/diagnose-problems-in-a-heroku-postgres-database.md)
|
- [Diagnose Problems In A Heroku Postgres Database](heroku/diagnose-problems-in-a-heroku-postgres-database.md)
|
||||||
|
- [Open Dashboard For Specific Add-On](heroku/open-dashboard-for-specific-add-on.md)
|
||||||
- [Run SQL Against Remote Postgres Database](heroku/run-sql-against-remote-postgres-database.md)
|
- [Run SQL Against Remote Postgres Database](heroku/run-sql-against-remote-postgres-database.md)
|
||||||
- [Set And Show Heroku Env Variables](heroku/set-and-show-heroku-env-variables.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)
|
- [SSH Into Heroku Server Hosting App](heroku/ssh-into-heroku-server-hosting-app.md)
|
||||||
|
|||||||
17
heroku/open-dashboard-for-specific-add-on.md
Normal file
17
heroku/open-dashboard-for-specific-add-on.md
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
# Open Dashboard For Specific Add-On
|
||||||
|
|
||||||
|
The number of times I've needed to check the papertrail logs for my
|
||||||
|
Heroku-hosted Rails app is a lot. I open a browser tab, go through several
|
||||||
|
layers of navigation to get to my app's dashboard, and then click the
|
||||||
|
papertrail link under _Add-ons_.
|
||||||
|
|
||||||
|
There is a much quicker way using the Heroku CLI.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ heroku addons:open papertrail -a my-app-name
|
||||||
|
Opening https://addons-sso.heroku.com/apps/abc123/addons/efg456...
|
||||||
|
```
|
||||||
|
|
||||||
|
It sends you to an add-ons SSO link in the browser which authenticates you and
|
||||||
|
drops you into the dashboard for that specific add-on. You just need to specify
|
||||||
|
the add-on name and the app name.
|
||||||
@@ -5,6 +5,8 @@ an array-like object with all of the arguments to the function. Even if not
|
|||||||
all of the arguments are referenced in the function signature, they can
|
all of the arguments are referenced in the function signature, they can
|
||||||
still be accessed via the `arguments` object.
|
still be accessed via the `arguments` object.
|
||||||
|
|
||||||
|
> For ES6+ compatibility, the `spread` operator used via [rest parameters](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/rest_parameters) is preferred over the `arugments` object when accessing an abritrary number of function arguments.
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
function argTest(one) {
|
function argTest(one) {
|
||||||
console.log(one);
|
console.log(one);
|
||||||
|
|||||||
Reference in New Issue
Block a user