Configure MATOMO from the environment
We try to be a 12factor app right? :-)
This commit is contained in:
parent
f2ad141e32
commit
d61b4253df
3 changed files with 22 additions and 18 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -2,7 +2,6 @@
|
||||||
config/application.rb
|
config/application.rb
|
||||||
config/config.yml
|
config/config.yml
|
||||||
config/secrets.yml
|
config/secrets.yml
|
||||||
config/piwik.yml
|
|
||||||
/vendor/cache
|
/vendor/cache
|
||||||
/vendor/cache-old
|
/vendor/cache-old
|
||||||
/storage/*
|
/storage/*
|
||||||
|
|
|
||||||
|
|
@ -9,25 +9,22 @@
|
||||||
# id_site
|
# id_site
|
||||||
# The id of your website inside Piwik
|
# The id of your website inside Piwik
|
||||||
#
|
#
|
||||||
|
|
||||||
|
default: &default
|
||||||
|
id_site: <%= ENV['OSEM_PIWIK_ID'] %>
|
||||||
|
url: <%= ENV['OSEM_PIWIK_URL'] %>
|
||||||
|
use_async: <%= ENV['OSEM_PIWIK_ASYNC'] || false %>
|
||||||
|
disabled: <%= ENV['OSEM_PIWIK_DISABLED'] || true %>
|
||||||
|
hostname: <%= ENV['OSEM_PIWIK_HOSTNAME'] || 'localhost' %>
|
||||||
|
|
||||||
production:
|
production:
|
||||||
piwik:
|
piwik:
|
||||||
id_site: 1
|
<<: *default
|
||||||
url: localhost
|
|
||||||
use_async: false
|
|
||||||
disabled: false
|
|
||||||
|
|
||||||
development:
|
development:
|
||||||
piwik:
|
piwik:
|
||||||
id_site: 1
|
<<: *default
|
||||||
url: localhost
|
|
||||||
disabled: true
|
|
||||||
use_async: false
|
|
||||||
hostname: localhost
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
piwik:
|
piwik:
|
||||||
id_site: 1
|
<<: *default
|
||||||
url: localhost
|
|
||||||
disabled: true
|
|
||||||
use_async: false
|
|
||||||
hostname: localhost
|
|
||||||
|
|
@ -70,9 +70,12 @@
|
||||||
# STRIPE_PUBLISHABLE_KEY=1234
|
# STRIPE_PUBLISHABLE_KEY=1234
|
||||||
# STRIPE_SECRET_KEY=5678
|
# STRIPE_SECRET_KEY=5678
|
||||||
|
|
||||||
# Disable linting of factories in the test suite.
|
# MATOMO/PIWIK CONFIGURATION
|
||||||
# Speeds up turn around times of tests
|
# OSEM_PIWIK_ID=12345
|
||||||
# OSEM_FACTORY_LINT=false
|
# OSEM_PIWIK_URL=localhost
|
||||||
|
# OSEM_PIWIK_ASYNC=false
|
||||||
|
# OSEM_PIWIK_DISABLED=true
|
||||||
|
# OSEM_PIWIK_HOSTNAME=localhost
|
||||||
|
|
||||||
# The smtp configuration. See the rails guides for more
|
# The smtp configuration. See the rails guides for more
|
||||||
# http://guides.rubyonrails.org/action_mailer_basics.html#action-mailer-configuration
|
# http://guides.rubyonrails.org/action_mailer_basics.html#action-mailer-configuration
|
||||||
|
|
@ -104,3 +107,8 @@
|
||||||
# Your skylight.io keys
|
# Your skylight.io keys
|
||||||
# SKYLIGHT_AUTHENTICATION=1234
|
# SKYLIGHT_AUTHENTICATION=1234
|
||||||
# SKYLIGHT_PUBLIC_DASHBOARD_URL='https://oss.skylight.io/app/applications/xxxxxxxxxxxx'
|
# SKYLIGHT_PUBLIC_DASHBOARD_URL='https://oss.skylight.io/app/applications/xxxxxxxxxxxx'
|
||||||
|
|
||||||
|
# Disable linting of factories in the test suite.
|
||||||
|
# Speeds up turn around times of tests
|
||||||
|
# OSEM_FACTORY_LINT=false
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue