Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
CTB
ctb-platform-backend-antigo
Commits
bb1dcdf6
Commit
bb1dcdf6
authored
Mar 28, 2018
by
Laury Bueno
Browse files
[Dev] USE_DOCKER variable removed
parent
cfde07ee
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
6 deletions
+3
-6
README.md
README.md
+0
-1
compose/test/test_env
compose/test/test_env
+0
-1
config/settings/local.py
config/settings/local.py
+3
-3
docker-compose.yml
docker-compose.yml
+0
-1
No files found.
README.md
View file @
bb1dcdf6
...
...
@@ -48,7 +48,6 @@ docker run --env-file=./compose/test/test_env --link=postgres_test:postgres \
-
DJANGO_ACCOUNT_ALLOW_REGISTRATION - opcional; padrão True
-
DJANGO_SECRET_KEY - obrigatório em produção
-
USE_CACHE - opcional; padrão True
-
USE_DOCKER - opcional; desnecessário em produção; em ambientes locais, escreva 'yes' se estiver usando Docker
### Redis
-
REDIS_URL - obrigatório em produção; exemplo:
`redis://127.0.0.1:6379`
...
...
compose/test/test_env
View file @
bb1dcdf6
POSTGRES_USER=base_django_project
USE_DOCKER=yes
COURIER_DEFAULT_PROVIDER=onesignal
COURIER_ONESIGNAL_APP_ID=660977f0-30ad-4f69-a9a4-2873b8f5de7e
COURIER_ONESIGNAL_USER_ID=NTlmYjI5NDktYzA1Zi00ODk4LTllZGQtYWEzY2Q4ZjA3YzM5
...
...
config/settings/local.py
View file @
bb1dcdf6
...
...
@@ -54,10 +54,10 @@ ALLOWED_HOSTS = env.list('DJANGO_ALLOWED_HOSTS', default=['localhost',])
import
socket
import
os
# tricks to have debug toolbar when developing with docker
if
os
.
environ
.
get
(
'USE_DOCKER'
)
==
'yes'
:
ip
=
socket
.
gethostbyname
(
socket
.
gethostname
())
INTERNAL_IPS
+=
[
ip
[:
-
1
]
+
'1'
]
ip
=
socket
.
gethostbyname
(
socket
.
gethostname
())
INTERNAL_IPS
+=
[
ip
[:
-
1
]
+
'1'
]
DEBUG_TOOLBAR_CONFIG
=
{
'DISABLE_PANELS'
:
[
...
...
docker-compose.yml
View file @
bb1dcdf6
...
...
@@ -26,7 +26,6 @@ services:
-
POSTGRES_DB=django
-
POSTGRES_USER=django
-
POSTGRES_PASSWORD=django
-
USE_DOCKER=yes
ports
:
-
"
8000:8000"
command
:
/runserver.sh
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment