Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Julien Jerphanion
Rex Dri
Commits
68fa3805
Commit
68fa3805
authored
Feb 21, 2019
by
Florent Chehab
Browse files
Fixed django static files handling
parent
9c78f586
Changes
2
Hide whitespace changes
Inline
Side-by-side
backend/base_app/settings.py
View file @
68fa3805
...
...
@@ -68,7 +68,7 @@ WEBPACK_LOADER = {
STATICFILES_DIRS
=
(
os
.
path
.
join
(
BASE_DIR
,
"static/frontend_app/bundles/"
BASE_DIR
,
"
backend/
static/frontend_app/bundles/"
),
# We do this so that django's collectstatic copies or our bundles to the STATIC_ROOT or syncs them to whatever storage we use.
)
# End of webpack loader related
...
...
docker-compose.yml
View file @
68fa3805
...
...
@@ -30,7 +30,7 @@ services:
-
POSTGRES_USER=postgres
-
POSTGRES_PASSWORD=postgres
# Run the django developpement server on image startup.
command
:
/bin/sh -c "cd backend && ./manage.py runserver 0.0.0.0:8000"
command
:
/bin/sh -c "cd backend && ./manage.py
collectstatic --noinput && ./manage.py
runserver 0.0.0.0:8000"
depends_on
:
# Required that the `database` service is up and running.
-
database
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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