Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'config/environments/development.rb')
-rw-r--r--config/environments/development.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/environments/development.rb b/config/environments/development.rb
index 168c434f261..f8cf196bc7c 100644
--- a/config/environments/development.rb
+++ b/config/environments/development.rb
@@ -1,4 +1,6 @@
Rails.application.configure do
+ WEBPACK_DEV_PORT = `cat ../webpack_port 2>/dev/null || echo '3808'`.to_i
+
# Settings specified here will take precedence over those in config/application.rb
# In the development environment your application's code is reloaded on
@@ -24,6 +26,8 @@ Rails.application.configure do
# Enable webpack dev server
config.webpack.dev_server.enabled = true
+ config.webpack.dev_server.port = WEBPACK_DEV_PORT
+ config.webpack.dev_server.manifest_port = WEBPACK_DEV_PORT
# Do not compress assets
config.assets.compress = false