Skip to content

Commit

Permalink
Adds installation of dependent node packages, and webpack compilation
Browse files Browse the repository at this point in the history
Dependent node packages are built with the `npm install` command
Then the rake webpack:compile instruction compiles necessary webpack stuff.

Signed-off-by: Chang Hyun Park <[email protected]>
  • Loading branch information
iamchanghyunpark authored and solidnerd committed Mar 4, 2017
1 parent 109c1ac commit 644895f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion assets/build/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,13 @@ chown -R ${GITLAB_USER}: ${GITLAB_HOME}
exec_as_git cp ${GITLAB_INSTALL_DIR}/config/gitlab.yml.example ${GITLAB_INSTALL_DIR}/config/gitlab.yml
exec_as_git cp ${GITLAB_INSTALL_DIR}/config/database.yml.mysql ${GITLAB_INSTALL_DIR}/config/database.yml

# Installs nodejs packages required to compile webpack
npm install

echo "Compiling assets. Please be patient, this could take a while..."
exec_as_git bundle exec rake assets:clean assets:precompile USE_DB=false SKIP_STORAGE_VALIDATION=true >/dev/null 2>&1
#Adding webpack compile needed since 8.17
exec_as_git bundle exec rake assets:clean assets:precompile webpack:compile USE_DB=false SKIP_STORAGE_VALIDATION=true >/dev/null 2>&1


# remove auto generated ${GITLAB_DATA_DIR}/config/secrets.yml
rm -rf ${GITLAB_DATA_DIR}/config/secrets.yml
Expand Down

0 comments on commit 644895f

Please sign in to comment.