From cf38c00fe23dc877a5e1802abda5659ce025153c Mon Sep 17 00:00:00 2001 From: Jacob Cody Wimer Date: Mon, 18 Jan 2016 16:56:00 -0500 Subject: [PATCH] Set up new env for email password --- deploy-site.sh | 6 ++++++ roles/web/tasks/main.yml | 3 +++ 2 files changed, 9 insertions(+) diff --git a/deploy-site.sh b/deploy-site.sh index eba726a..9cd9e95 100644 --- a/deploy-site.sh +++ b/deploy-site.sh @@ -23,6 +23,12 @@ if [ -z ${WRESTLINGDEV_DB_PORT} ]; then exit fi +if [ -z ${WRESTLINGDEV_EMAIL_PWD} ]; then + echo "WRESTLINGDEV_EMAIL_PWD not set" + exit +fi + + if [ -z ${WRESTLINGDEV_DEVISE_SECRET_KEY} ]; then echo "WRESTLINGDEV_DEVISE_SECRET_KEY not set" exit diff --git a/roles/web/tasks/main.yml b/roles/web/tasks/main.yml index 446b96b..fd87bb8 100644 --- a/roles/web/tasks/main.yml +++ b/roles/web/tasks/main.yml @@ -44,6 +44,9 @@ - name: Set memcached servers shell: echo export MEMCACHIER_SERVERS={{ lookup('env', 'MEMCACHIER_SERVERS') }} >> /var/www/html/prod.env +- name: Set email password + shell: echo export WRESTLINGDEV_EMAIL_PWD={{ lookup('env', 'WRESTLINGDEV_EMAIL_PWD') }} >> /var/www/html/prod.env + - name: Create and start apache docker image shell: cd /var/www/html/ && bash rails-prod.sh wrestlingdev-web