aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2014-12-07 22:36:37 +0100
committerHarald Eilertsen <haraldei@anduin.net>2014-12-07 22:36:37 +0100
commit94c8330dd73f872e844e91ffe6e5a45c70d07c8f (patch)
treed519d02b164f6bb2247a58a642e735cd1f7baf52 /config
parentd01374d7221e11fc9d35f6f6100db08b5f3032c1 (diff)
downloadhmnoweb-94c8330dd73f872e844e91ffe6e5a45c70d07c8f.tar.gz
hmnoweb-94c8330dd73f872e844e91ffe6e5a45c70d07c8f.tar.bz2
hmnoweb-94c8330dd73f872e844e91ffe6e5a45c70d07c8f.zip
Add capistrano task and config for deploying piwik.
Diffstat (limited to 'config')
-rw-r--r--config/deploy.rb.example2
-rw-r--r--config/deploy/production.rb.example4
-rw-r--r--config/deploy/staging.rb.example4
-rw-r--r--config/piwik.yml.erb33
4 files changed, 42 insertions, 1 deletions
diff --git a/config/deploy.rb.example b/config/deploy.rb.example
index f08e859..51362d5 100644
--- a/config/deploy.rb.example
+++ b/config/deploy.rb.example
@@ -6,7 +6,7 @@ set :application, 'hmno'
# change this to your fork
set :repo_url, 'git@github.com:snake66/project-limestone.git'
-set :linked_files, %w{config/initializers/refinery/core.rb config/initializers/secret_token.rb}
+set :linked_files, %w{config/initializers/refinery/core.rb config/initializers/secret_token.rb config/piwik.yml}
set :linked_dirs, %w{log tmp/pids tmp/cache tmp/sockets vendor/bundle public/system}
namespace :deploy do
diff --git a/config/deploy/production.rb.example b/config/deploy/production.rb.example
index f0ebff2..42248ee 100644
--- a/config/deploy/production.rb.example
+++ b/config/deploy/production.rb.example
@@ -14,3 +14,7 @@ set :branch, 'production'
#setup for capistrano-rvm plugin:
#set :rvm_type, :system
#set :rvm_ruby_version, '2.1.1'
+
+# setup for piwik
+set :piwik_site_id, 0
+set :piwik_url, ''
diff --git a/config/deploy/staging.rb.example b/config/deploy/staging.rb.example
index 2a92b4a..28a7564 100644
--- a/config/deploy/staging.rb.example
+++ b/config/deploy/staging.rb.example
@@ -14,3 +14,7 @@ set :branch, 'staging'
#setup for capistrano-rvm plugin:
#set :rvm_type, :system
#set :rvm_ruby_version, '2.1.1'
+
+# setup for piwik
+set :piwik_site_id, 0
+set :piwik_url, ''
diff --git a/config/piwik.yml.erb b/config/piwik.yml.erb
new file mode 100644
index 0000000..045ca08
--- /dev/null
+++ b/config/piwik.yml.erb
@@ -0,0 +1,33 @@
+# Configuration:
+#
+# disabled
+# false if tracking tag should be shown
+# use_async
+# Set to true if you want to use asynchronous tracking
+# url
+# The url of your piwik instance (e.g. localhost/piwik/
+# id_site
+# The id of your website inside Piwik
+#
+production:
+ piwik:
+ id_site: <%= site_id %>
+ url: <%= url %>
+ use_async: false
+ disabled: false
+
+development:
+ piwik:
+ id_site: <%= site_id %>
+ url: <%= url %>
+ disabled: true
+ use_async: false
+ hostname: localhost
+
+test:
+ piwik:
+ id_site: <%= site_id %>
+ url: <%= url %>
+ disabled: true
+ use_async: false
+ hostname: localhost