Browse Source

Yeesh.

feature/python-error-tracking
Drew Larson 8 years ago
parent
commit
821986613e
  1. 1
      Dockerfile
  2. 2
      bikeshop_project/bikeshop/settings/base.py
  3. 2
      bikeshop_project/bikeshop/settings/production.py

1
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

2
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']
}

2
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']
}

Loading…
Cancel
Save