debian-mirror-gitlab/debian/rake-tasks.sh
2015-11-09 01:04:55 +05:30

11 lines
373 B
Bash
Executable file

#! /bin/sh
# Read configuration values
. /etc/gitlab/gitlab-debian.conf
echo "Initializing database..."
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 RAILS_ENV=production'
su ${gitlab_user} -s /bin/sh -c 'touch public/source.tar.gz'