Skip to content
This repository has been archived by the owner on Jan 29, 2021. It is now read-only.

Troubleshooting

Katie Crane edited this page Dec 6, 2017 · 6 revisions

Logs

How do I use logs for Rogue Thor and Production?

For Production: SSH into aws-admin and then SSH into rogue. CD to /var/www/rogue/current/storage/logs. There you can access the 5 most recent daily log files.

For Thor: Make sure you have Heroku CLI installed. You can run heroku logs --app rogue-thor to see the most recently logged items. You can also see the logs here on the Heroku website. These log spots store a limited history. To be able to access full log history, check out Logentries. That link defaults to the most recent 20 minutes of logs, but you can also change the time period, search, and see a live tail of the logs.

How do I get access to all of those great log things you linked me to above?

You can request access from @morgan in #devops. Make sure you don't have a working invite buried somewhere in your inbox first though!

Heroku

How do I run artisan commands?

From the command line using Heroku CLI: heroku run php artisan YOUR_COMMAND_HERE --app YOUR_APP_HERE Currently, our only app is rogue-thor.

Gambit

How do I test with Gambit on Thor?

  1. Slack thor to Gambit Staging to get Gambit Thor keywords — look for campaigns that are ‘active’ OR go to https://gambit-admin-staging.herokuapp.com/ (login in LastPass) and you can see campaigns that are active/inactive.
  2. Pick a campaign and text to +1-312-477-0548.

JavaScript Style

What's our ESLint config?

It lives right here!

Do we have a JavaScript Style Guide?

Sure do!

How do I know what these linting rules are?

Search the name of the rule (try no-nested-ternary) into the search box on eslint.org to read more.

Why did we pick these rules?

Airbnb's JavaScript Style Guide sometimes provides some good context for reasons behind linting rules!

Clone this wiki locally