Skip to content

Commit

Permalink
Enable Skylight in staging
Browse files Browse the repository at this point in the history
This is a follow-up of
openfoodfoundation#2070.

When running the production API key in staging, the `log/skylight.log`
showed:

```
[SKYLIGHT] [1.5.0] You are running in the staging environment but
haven't added it to config.skylight.environments, so no data will be
sent to skylight.io.
```

According to
https://www.skylight.io/support/advanced-setup#setting-up-multiple-environments
it turns out we need to create a new app for staging and use its API
key.
  • Loading branch information
sauloperez authored and HugsDaniel committed Jun 4, 2018
1 parent a6ac29a commit 134ba7d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ class Application < Rails::Application
end
end

# Activate the Skylight agent in staging. You need to provision the
# SKYLIGHT_AUTHENTICATION env var in your OFN instance for this to work.
#
# Check https://github.com/openfoodfoundation/openfoodnetwork/pull/2070 for
# details
config.skylight.environments += ["staging"]

# Settings dependent on locale
#
# We need to set this config before the promo environment gets loaded and
Expand Down

0 comments on commit 134ba7d

Please sign in to comment.