From 57bc1087cc00199e4f5798941e5015cf22350a7e Mon Sep 17 00:00:00 2001 From: Praveen Arimbrathodiyil Date: Mon, 9 Nov 2015 00:12:39 +0530 Subject: [PATCH] add gitlab:setup task --- debian/rake-tasks.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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'