Skip to content
Snippets Groups Projects
Commit 2e7dc210 authored by Mike Greiling's avatar Mike Greiling
Browse files

configure webpack-dev-server in both Procfile and gitlab.yml based on webpack_port

parent 21350d8a
No related branches found
No related tags found
1 merge request!237Added webpack to Procfile
Pipeline #
Loading
Loading
@@ -13,6 +13,7 @@ port = $(shell cat port 2>/dev/null)
username = $(shell whoami)
sshd_bin = $(shell which sshd)
git_bin = $(shell which git)
webpack_port = $(shell cat webpack_port 2>/dev/null || echo '3808')
 
all: gitlab-setup gitlab-shell-setup gitlab-workhorse-setup support-setup gitaly-setup
 
Loading
Loading
@@ -29,7 +30,7 @@ gitlab/config/gitlab.yml:
sed -e "s|/home/git|${gitlab_development_root}|"\
-e "s|/usr/bin/git|${git_bin}|"\
gitlab/config/gitlab.yml.example > gitlab/config/gitlab.yml
port=${port} support/edit-gitlab.yml gitlab/config/gitlab.yml
port=${port} webpack_port=${webpack_port} support/edit-gitlab.yml gitlab/config/gitlab.yml
 
gitlab/config/database.yml:
sed "s|/home/git|${gitlab_development_root}|" database.yml.example > gitlab/config/database.yml
Loading
Loading
@@ -142,9 +143,10 @@ support-setup: .ruby-version foreman Procfile redis postgresql openssh-setup ngi
 
Procfile:
sed -e "s|/home/git|${gitlab_development_root}|g"\
-e "s|/usr/sbin/sshd|${sshd_bin}|"\
-e "s|postgres |${postgres_bin_dir}/postgres |"\
$@.example > $@
-e "s|/usr/sbin/sshd|${sshd_bin}|"\
-e "s|postgres |${postgres_bin_dir}/postgres |"\
-e "s|DEV_SERVER_PORT=3808 |DEV_SERVER_PORT=${webpack_port} |"\
$@.example > $@
if [ -f .vagrant_enabled ]; then \
echo "0.0.0.0" > host; \
echo "3000" > port; \
Loading
Loading
Loading
Loading
@@ -14,4 +14,4 @@ rails-background-jobs: exec /usr/bin/env SIDEKIQ_LOG_ARGUMENTS=1 RAILS_ENV=devel
#sshd: exec /usr/sbin/sshd -e -D -f /home/git/openssh/sshd_config
#nginx: exec nginx -p /home/git/nginx -c conf/nginx.conf
#gitaly: exec /usr/bin/env GITALY_SOCKET_PATH=/home/git/gitaly.socket GITALY_PROMETHEUS_LISTEN_ADDR=:9101 gitaly/bin/gitaly
webpack: exec support/exec-cd gitlab npm run dev-server
webpack: exec /usr/bin/env NODE_ENV=development DEV_SERVER_PORT=3808 support/exec-cd gitlab npm run dev-server
Loading
Loading
@@ -12,5 +12,12 @@ a
ssh_port: 2222
ssh_host: localhost
.
/ webpack:/
a
dev_server:
enabled: true
host: localhost
port: ${webpack_port:-3808}
.
wq
EOF
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment