Use gitlab:assets:compile for compiling assets

This commit will replace the following rake tasks through a single one.

- assets:clean
- assets:precompile
- webpack:compile

Signed-off-by: solidnerd <niclas@mietz.io>
This commit is contained in:
solidnerd 2017-07-02 11:27:44 +02:00
parent d4de4f3b7b
commit ceb4e1d1f0
No known key found for this signature in database
GPG Key ID: C300D44AB5469BE5

View File

@ -151,9 +151,7 @@ exec_as_git cp ${GITLAB_INSTALL_DIR}/config/database.yml.mysql ${GITLAB_INSTALL_
exec_as_git yarn install --production --pure-lockfile
echo "Compiling assets. Please be patient, this could take a while..."
#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
exec_as_git bundle exec rake gitlab:assets:compile USE_DB=false SKIP_STORAGE_VALIDATION=true
# remove auto generated ${GITLAB_DATA_DIR}/config/secrets.yml
rm -rf ${GITLAB_DATA_DIR}/config/secrets.yml