diff --git a/debian/rake-tasks.sh b/debian/rake-tasks.sh index 9e2c9bb3a6..f8616655c4 100755 --- a/debian/rake-tasks.sh +++ b/debian/rake-tasks.sh @@ -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'