[DRE-commits] [gitlab] 01/02: add gitlab:setup task
Praveen Arimbrathodiyil
praveen at moszumanska.debian.org
Sun Nov 8 19:21:45 UTC 2015
This is an automated email from the git hooks/post-receive script.
praveen pushed a commit to branch master
in repository gitlab.
commit 57bc1087cc00199e4f5798941e5015cf22350a7e
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date: Mon Nov 9 00:12:39 2015 +0530
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 9e2c9bb..f861665 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'
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/gitlab.git
More information about the Pkg-ruby-extras-commits
mailing list