Collect Static so admin works
Thanks tchaypo and jammielennox Closes #11
This commit is contained in:
parent
dc935261e2
commit
1a54b0f9d6
2 changed files with 5 additions and 1 deletions
|
@ -27,4 +27,8 @@ RUN set -ex \
|
||||||
COPY . /app/symposion_app
|
COPY . /app/symposion_app
|
||||||
|
|
||||||
WORKDIR /app/symposion_app
|
WORKDIR /app/symposion_app
|
||||||
|
RUN set -x \
|
||||||
|
&& DJANGO_SECRET_KEY=1234 STRIPE_PUBLIC_KEY=1234 STRIPE_SECRET_KEY=1234 \
|
||||||
|
DATABASE_URL="sqlite:////dev/null" \
|
||||||
|
python manage.py collectstatic --noinput -l -v 0
|
||||||
CMD ["/usr/local/bin/uwsgi", "--http-socket", "0.0.0.0:8000", "--wsgi-file", "pinaxcon/wsgi.py"]
|
CMD ["/usr/local/bin/uwsgi", "--http-socket", "0.0.0.0:8000", "--wsgi-file", "pinaxcon/wsgi.py"]
|
||||||
|
|
|
@ -102,7 +102,7 @@ USE_TZ = True
|
||||||
MEDIA_ROOT = os.path.join(PACKAGE_ROOT, "site_media", "media")
|
MEDIA_ROOT = os.path.join(PACKAGE_ROOT, "site_media", "media")
|
||||||
MEDIA_URL = "/site_media/media/"
|
MEDIA_URL = "/site_media/media/"
|
||||||
|
|
||||||
STATIC_ROOT = os.path.join(PROJECT_ROOT, 'static/src')
|
STATIC_ROOT = os.path.join(PROJECT_ROOT, 'static/build')
|
||||||
STATIC_URL = '/static/src/'
|
STATIC_URL = '/static/src/'
|
||||||
|
|
||||||
STATICFILES_DIRS = [
|
STATICFILES_DIRS = [
|
||||||
|
|
Loading…
Reference in a new issue