debian-mirror-gitlab/debian/rake-tasks.sh
Praveen Arimbrathodiyil b8a8f4d7c1 run gitlab:check
2016-01-16 02:16:50 +05:30

14 lines
638 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 force=yes'
su ${gitlab_user} -s /bin/sh -c 'bundle exec rake gitlab:shell:install \
REDIS_URL=redis://localhost:6379 \
SHELL_ROOT_PATH=/usr/share/gitlab-shell 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 'bundle exec rake gitlab:check RAILS_ENV=production'
su ${gitlab_user} -s /bin/sh -c 'touch public/source.tar.gz'