diff --git a/kobo/settings.py b/kobo/settings.py index 3b3687acd6..6cd59a54cb 100644 --- a/kobo/settings.py +++ b/kobo/settings.py @@ -534,7 +534,12 @@ def __init__(self, *args, **kwargs): 'handlers': ['console'], 'level': 'DEBUG', 'propagate': True - } + }, + 'django.db.backends': { + 'level': 'ERROR', + 'handlers': ['console'], + 'propagate': True + }, } } diff --git a/webpack/dev.server.js b/webpack/dev.server.js index 480d37a5d0..884cbd5472 100644 --- a/webpack/dev.server.js +++ b/webpack/dev.server.js @@ -3,7 +3,11 @@ const path = require('path'); const webpack = require('webpack'); const WebpackCommon = require('./webpack.common'); const BundleTracker = require('webpack-bundle-tracker'); -var publicPath = 'http://localhost:3000/static/compiled/'; +var isPublicDomainDefined = process.env.KOBOFORM_PUBLIC_SUBDOMAIN && + process.env.PUBLIC_DOMAIN_NAME; +var publicDomain = isPublicDomainDefined ? process.env.KOBOFORM_PUBLIC_SUBDOMAIN + + '.' + process.env.PUBLIC_DOMAIN_NAME : 'localhost'; +var publicPath = 'http://' + publicDomain + ':3000/static/compiled/'; module.exports = WebpackCommon({ mode: "development", @@ -22,7 +26,8 @@ module.exports = WebpackCommon({ disableHostCheck: true, hot: true, headers: {'Access-Control-Allow-Origin': '*'}, - port: 3000 + port: 3000, + host: '0.0.0.0' }, plugins: [ new BundleTracker({path: __dirname, filename: '../webpack-stats.json'}),