From 821986613e3fd26b1c5b844e5cd9afe53b68eb04 Mon Sep 17 00:00:00 2001 From: Drew Larson Date: Mon, 16 Jan 2017 19:39:11 -0600 Subject: [PATCH] Yeesh. --- Dockerfile | 1 + bikeshop_project/bikeshop/settings/base.py | 2 +- bikeshop_project/bikeshop/settings/production.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4a91bb2..d2dc01a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,3 +14,4 @@ RUN bower install --allow-root RUN npm install --unsafe-perm RUN npm run build-production RUN DJANGO_SETTINGS_MODULE=bikeshop.settings.production python manage.py collectstatic --no-input +EXPOSE 8000 diff --git a/bikeshop_project/bikeshop/settings/base.py b/bikeshop_project/bikeshop/settings/base.py index 350b1f5..16fbedf 100644 --- a/bikeshop_project/bikeshop/settings/base.py +++ b/bikeshop_project/bikeshop/settings/base.py @@ -140,7 +140,7 @@ WEBPACK_LOADER = { 'DEFAULT': { 'CACHE': False, 'BUNDLE_DIR_NAME': 'bundles/', # must end with slash - 'STATS_FILE': os.path.join(BASE_DIR, '../webpack-stats.json'), + 'STATS_FILE': os.path.join(BASE_DIR, 'webpack-stats.json'), 'POLL_INTERVAL': 0.1, 'IGNORE': ['.+\.hot-update.js', '.+\.map'] } diff --git a/bikeshop_project/bikeshop/settings/production.py b/bikeshop_project/bikeshop/settings/production.py index e50f654..ce4be37 100644 --- a/bikeshop_project/bikeshop/settings/production.py +++ b/bikeshop_project/bikeshop/settings/production.py @@ -41,7 +41,7 @@ WEBPACK_LOADER = { 'DEFAULT': { 'CACHE': True, 'BUNDLE_DIR_NAME': 'dist/', # must end with slash - 'STATS_FILE': os.path.join(BASE_DIR, '../webpack-stats-prod.json'), + 'STATS_FILE': os.path.join(BASE_DIR, 'webpack-stats-prod.json'), 'POLL_INTERVAL': 0.1, 'IGNORE': ['.+\.hot-update.js', '.+\.map'] }