From adfe8f30aea0f0aee14d13b167c3a31dc3ef58f2 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Thu, 24 Mar 2016 11:34:17 +0100 Subject: [PATCH] add application.yml.default --- .gitignore | 3 +++ README.md | 3 ++- config/application.yml.default | 29 +++++++++++++++++++++++++++++ 3 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 config/application.yml.default diff --git a/.gitignore b/.gitignore index 3fd51a377..fc1f84537 100644 --- a/.gitignore +++ b/.gitignore @@ -27,3 +27,6 @@ # machine specific database config /config/database.yml + +# application configuration +/config/application.yml diff --git a/README.md b/README.md index c3bf72c96..901816a74 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,8 @@ The following files must be filled with the correct configuration to allow FabMa - `config.action_mailer.default_url_options` -> change the URL according to the staging deployment url - `mandrill` -> change this if you're using a different mailing system -- config/application.yml +- config/application.yml.default + Copy/Paste this file to `config/application.yml` and modify it: - `DEVISE_KEY` -> generate any secret phrase to secure the Devise authentication. You can use the `$ rake secret` command for this purpose. - `SECRET_KEY_BASE` -> generate any secret phrase here to prevent XSS attacks. You can use the `$ rake secret` command for this purpose. - `DEFAULT_MAIL_FROM` -> default e-mail address from which the emails are sent diff --git a/config/application.yml.default b/config/application.yml.default new file mode 100644 index 000000000..e8fb9a34a --- /dev/null +++ b/config/application.yml.default @@ -0,0 +1,29 @@ +# Add application configuration variables here, as shown below. +# + +# Var ENV for Staging or Production +DEVISE_KEY: '-- your secret key here --' + +SECRET_KEY_BASE: YourXssPreventionKeyHere + +APPLICATION_ROOT_URL: 'demo.fab-manager.com' +APPLICATION_PROTOCOL: 'http' + +DATABASE_USERNAME: +DATABASE_PASSWORD: +DATABASE_PORT: + +DEFAULT_MAIL_FROM: fabmanager + +MANDRILL_USERNAME: YourMandrillUsernameHere +MANDRILL_APIKEY: YourMandrillApiKeyHere + +GOOGLE_ANALYTICS_ACCOUNT: 'UA-YOUR_ID_HERE' + + +# Global ENV +TWITTER_NAME: 'FablabGrenoble' +TWITTER_CONSUMER_KEY: 'YourTwitterKeyHere' +TWITTER_CONSUMER_SECRET: 'YourTwitterSecretHere' +TWITTER_ACCESS_TOKEN: 'YourTwitterTokenHere' +TWITTER_ACCESS_TOKEN_SECRET: 'YourTwitterTokenSecretHere' \ No newline at end of file