Skip to content
Snippets Groups Projects
Commit 5db0a1f2 authored by Jacob Vosmaer (GitLab)'s avatar Jacob Vosmaer (GitLab)
Browse files

Merge branch 'add-npm-install-to-makefile' into 'master'

Add `npm install` to `gdk update`

Update the `gitlab-update` rule with an `npm install` system command.

See merge request !207
parents a3107786 915f13aa
No related branches found
No related tags found
1 merge request!207Add `npm install` to `gdk update`
Loading
Loading
@@ -16,7 +16,7 @@ all: gitlab-setup gitlab-shell-setup gitlab-workhorse-setup support-setup
 
# Set up the GitLab Rails app
 
gitlab-setup: gitlab/.git gitlab-config bundler .gitlab-bundle
gitlab-setup: gitlab/.git gitlab-config bundler .gitlab-bundle .gitlab-npm
 
gitlab/.git:
git clone ${gitlab_repo} gitlab
Loading
Loading
@@ -46,6 +46,10 @@ gitlab/public/uploads:
cd ${gitlab_development_root}/gitlab && bundle install --without mysql production --jobs 4
touch $@
 
.gitlab-npm:
cd ${gitlab_development_root}/gitlab && npm install
touch $@
.PHONY: bundler
bundler:
command -v $@ > /dev/null || gem install $@
Loading
Loading
@@ -84,7 +88,8 @@ gitlab-update: gitlab/.git/pull
@echo "------------------------------------------------------------"
@echo ""
cd ${gitlab_development_root}/gitlab && \
bundle exec rake db:migrate db:test:prepare
bundle exec rake db:migrate db:test:prepare && \
npm install
 
gitlab-shell-update: gitlab-shell/.git/pull
cd ${gitlab_development_root}/gitlab-shell && \
Loading
Loading
@@ -208,7 +213,7 @@ grafana/gdk-data-source-created:
printf ',s/^#grafana/grafana/\nwq\n' | ed -s Procfile
support/bootstrap-grafana
touch $@
performance-metrics-setup: Procfile influxdb-setup grafana-setup
 
openssh-setup: openssh/sshd_config openssh/ssh_host_rsa_key
Loading
Loading
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