add gitlab:setup task

This commit is contained in:
Praveen Arimbrathodiyil 2015-11-09 00:12:39 +05:30
parent 2220dea286
commit 57bc1087cc

View file

@ -3,8 +3,9 @@
. /etc/gitlab/gitlab-debian.conf
echo "Initializing database..."
su ${gitlab_user} -s /bin/sh -c 'bundle exec rake db:create db:schema:load'
su ${gitlab_user} -s /bin/sh -c 'bundle exec rake db:create db:schema:load RAILS_ENV=production'
su ${gitlab_user} -s /bin/sh -c 'bundle exec rake gitlab:setup RAILS_ENV=production'
echo "Precompiling assets..."
su ${gitlab_user} -s /bin/sh -c 'bundle exec rake assets:precompile'
su ${gitlab_user} -s /bin/sh -c 'bundle exec rake assets:precompile RAILS_ENV=production'
su ${gitlab_user} -s /bin/sh -c 'touch public/source.tar.gz'