Use environment variable for the redis url in cable.yml

Move redis url from cable.yml to dotenv.example
This commit is contained in:
AEtherC0r3 2017-11-09 17:43:41 +02:00 committed by Stella Rouzi
parent de646019fb
commit c21c9af60f
3 changed files with 5 additions and 1 deletions

View file

@ -105,6 +105,7 @@ There are a couple of environment variables you can set to configure OSEM. Check
| CLOUDINARY_URL | *string* | Configure your cloudinary.com cloud name and api key/secret | CLOUDINARY_URL | *string* | Configure your cloudinary.com cloud name and api key/secret
| STRIPE_PUBLISHABLE_KEY | *string* | Publishable Key for Stripe Gateway | STRIPE_PUBLISHABLE_KEY | *string* | Publishable Key for Stripe Gateway
| STRIPE_SECRET_KEY | *string* | Secret Key for Stripe Gateway | STRIPE_SECRET_KEY | *string* | Secret Key for Stripe Gateway
| OSEM_REDIS_URL | *string* | Redis server URL e.g. redis://localhost:6379/1
### Online Ticket Payments ### Online Ticket Payments
We use [Stripe](https://stripe.com) for accepting your ticket payments securely over the web. We use [Stripe](https://stripe.com) for accepting your ticket payments securely over the web.

View file

@ -6,4 +6,4 @@ test:
production: production:
adapter: redis adapter: redis
url: redis://localhost:6379/1 url: <%= ENV['OSEM_REDIS_URL'] %>

View file

@ -70,3 +70,6 @@ OSEM_ICHAIN_ENABLED=false
# ReCAPTCHA keys # ReCAPTCHA keys
RECAPTCHA_SITE_KEY="" RECAPTCHA_SITE_KEY=""
RECAPTCHA_SECRET_KEY="" RECAPTCHA_SECRET_KEY=""
# The url of the redis server
OSEM_REDIS_URL='redis://localhost:6379/1'