mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-04-25 10:53:45 +03:00
Updated with PR feedback
This commit is contained in:
parent
6e6d32791b
commit
ed5044595d
|
@ -54,7 +54,7 @@ First things first.
|
|||
|
||||
#. Set the environment variables for your database(s): ::
|
||||
|
||||
$ export POSTGRES_USER=
|
||||
$ export POSTGRES_USER=postgres
|
||||
$ export POSTGRES_PASSWORD=
|
||||
$ export POSTGRES_DB=<DB name given to createdb>
|
||||
# Optional: set broker URL if using Celery
|
||||
|
|
|
@ -57,9 +57,8 @@ jobs:
|
|||
|
||||
env:
|
||||
{%- if cookiecutter.use_celery == 'y' %}
|
||||
CELERY_BROKER_URL: 'redis://localhost:6379/0'
|
||||
REDIS_URL: 'redis://localhost:6379/0'
|
||||
{%- endif %}
|
||||
# postgres://user:password@host:port/database
|
||||
POSTGRES_USER: 'postgres'
|
||||
POSTGRES_PASSWORD: 'postgres'
|
||||
POSTGRES_DB: 'postgres'
|
||||
|
|
|
@ -5,6 +5,7 @@ stages:
|
|||
variables:
|
||||
POSTGRES_USER: '{{ cookiecutter.project_slug }}'
|
||||
POSTGRES_PASSWORD: ''
|
||||
POSTGRES_HOST: postgres
|
||||
POSTGRES_DB: 'test_{{ cookiecutter.project_slug }}'
|
||||
POSTGRES_HOST_AUTH_METHOD: trust
|
||||
{%- if cookiecutter.use_celery == 'y' %}
|
||||
|
|
Loading…
Reference in New Issue
Block a user