From a091dcbae890240658a99bf8405b2fa7fe974ad9 Mon Sep 17 00:00:00 2001 From: Daniel Roy Greenfeld Date: Wed, 28 Sep 2016 16:42:02 -0700 Subject: [PATCH] Fix elastic beanstalk checks --- {{cookiecutter.project_slug}}/README.rst | 6 +++--- {{cookiecutter.project_slug}}/config/settings/production.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/{{cookiecutter.project_slug}}/README.rst b/{{cookiecutter.project_slug}}/README.rst index b248a2c3..e06a85ba 100644 --- a/{{cookiecutter.project_slug}}/README.rst +++ b/{{cookiecutter.project_slug}}/README.rst @@ -117,7 +117,7 @@ Deployment ---------- The following details how to deploy this application. -{% if cookiecutter.use_heroku == "y" %} +{% if cookiecutter.use_heroku.lower() == "y" %} Heroku ^^^^^^ @@ -129,7 +129,7 @@ See detailed `cookiecutter-django Heroku documentation`_. .. _`cookiecutter-django Heroku documentation`: http://cookiecutter-django.readthedocs.io/en/latest/deployment-on-heroku.html {% endif %} -{% if cookiecutter.use_docker == "y" %} +{% if cookiecutter.use_docker.lower() == "y" %} Docker ^^^^^^ @@ -138,7 +138,7 @@ See detailed `cookiecutter-django Docker documentation`_. .. _`cookiecutter-django Docker documentation`: http://cookiecutter-django.readthedocs.io/en/latest/deployment-with-docker.html {% endif %} -{% if cookiecutter.use_elasticbeanstalk_experimental %} +{% if cookiecutter.use_elasticbeanstalk_experimental.lower() == 'y' %} Elastic Beanstalk ~~~~~~~~~~~~~~~~~~ diff --git a/{{cookiecutter.project_slug}}/config/settings/production.py b/{{cookiecutter.project_slug}}/config/settings/production.py index 7934182a..2201c3fc 100644 --- a/{{cookiecutter.project_slug}}/config/settings/production.py +++ b/{{cookiecutter.project_slug}}/config/settings/production.py @@ -178,7 +178,7 @@ TEMPLATES[0]['OPTIONS']['loaders'] = [ # DATABASE CONFIGURATION # ------------------------------------------------------------------------------ -{% if cookiecutter.use_elasticbeanstalk_experimental -%} +{% if cookiecutter.use_elasticbeanstalk_experimental.lower() == 'y' -%} # Uses Amazon RDS for database hosting, which doesn't follow the Heroku-style spec DATABASES = { 'default': { @@ -198,7 +198,7 @@ DATABASES['default'] = env.db('DATABASE_URL') # CACHING # ------------------------------------------------------------------------------ -{% if cookiecutter.use_elasticbeanstalk_experimental -%} +{% if cookiecutter.use_elasticbeanstalk_experimental.lower() == 'y' -%} REDIS_LOCATION = "redis://{}:{}/0".format( env('REDIS_ENDPOINT_ADDRESS'), env('REDIS_PORT')