mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-13 13:17:00 +03:00
Fix elastic beanstalk checks
This commit is contained in:
parent
f803f8f2ab
commit
a091dcbae8
|
@ -117,7 +117,7 @@ Deployment
|
||||||
----------
|
----------
|
||||||
|
|
||||||
The following details how to deploy this application.
|
The following details how to deploy this application.
|
||||||
{% if cookiecutter.use_heroku == "y" %}
|
{% if cookiecutter.use_heroku.lower() == "y" %}
|
||||||
|
|
||||||
Heroku
|
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
|
.. _`cookiecutter-django Heroku documentation`: http://cookiecutter-django.readthedocs.io/en/latest/deployment-on-heroku.html
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if cookiecutter.use_docker == "y" %}
|
{% if cookiecutter.use_docker.lower() == "y" %}
|
||||||
|
|
||||||
Docker
|
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
|
.. _`cookiecutter-django Docker documentation`: http://cookiecutter-django.readthedocs.io/en/latest/deployment-with-docker.html
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if cookiecutter.use_elasticbeanstalk_experimental %}
|
{% if cookiecutter.use_elasticbeanstalk_experimental.lower() == 'y' %}
|
||||||
|
|
||||||
Elastic Beanstalk
|
Elastic Beanstalk
|
||||||
~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~
|
||||||
|
|
|
@ -178,7 +178,7 @@ TEMPLATES[0]['OPTIONS']['loaders'] = [
|
||||||
|
|
||||||
# DATABASE CONFIGURATION
|
# 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
|
# Uses Amazon RDS for database hosting, which doesn't follow the Heroku-style spec
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
'default': {
|
'default': {
|
||||||
|
@ -198,7 +198,7 @@ DATABASES['default'] = env.db('DATABASE_URL')
|
||||||
|
|
||||||
# CACHING
|
# CACHING
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
{% if cookiecutter.use_elasticbeanstalk_experimental -%}
|
{% if cookiecutter.use_elasticbeanstalk_experimental.lower() == 'y' -%}
|
||||||
REDIS_LOCATION = "redis://{}:{}/0".format(
|
REDIS_LOCATION = "redis://{}:{}/0".format(
|
||||||
env('REDIS_ENDPOINT_ADDRESS'),
|
env('REDIS_ENDPOINT_ADDRESS'),
|
||||||
env('REDIS_PORT')
|
env('REDIS_PORT')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user