add gitlab:setup task
This commit is contained in:
parent
2220dea286
commit
57bc1087cc
1 changed files with 3 additions and 2 deletions
5
debian/rake-tasks.sh
vendored
5
debian/rake-tasks.sh
vendored
|
@ -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'
|
||||
|
||||
|
|
Loading…
Reference in a new issue