2015-09-12 15:42:12 +05:30
|
|
|
#! /bin/sh
|
|
|
|
# Read configuration values
|
2015-10-24 12:51:45 +05:30
|
|
|
. /etc/gitlab/gitlab-debian.conf
|
2015-09-12 15:42:12 +05:30
|
|
|
|
|
|
|
echo "Initializing database..."
|
2015-11-09 19:02:10 +05:30
|
|
|
su ${gitlab_user} -s /bin/sh -c 'bundle exec rake gitlab:setup RAILS_ENV=production force=yes'
|
2015-11-10 23:00:48 +05:30
|
|
|
su ${gitlab_user} -s /bin/sh -c 'bundle exec rake gitlab:shell:install[v2.6.5] \
|
2015-11-10 20:57:56 +05:30
|
|
|
REDIS_URL=unix:/var/run/redis/redis.sock \
|
|
|
|
SHELL_ROOT_PATH=/usr/share/gitlab-shell RAILS_ENV=production'
|
2015-09-12 15:42:12 +05:30
|
|
|
echo "Precompiling assets..."
|
2015-11-09 00:12:39 +05:30
|
|
|
su ${gitlab_user} -s /bin/sh -c 'bundle exec rake assets:precompile RAILS_ENV=production'
|
2015-10-24 12:51:45 +05:30
|
|
|
su ${gitlab_user} -s /bin/sh -c 'touch public/source.tar.gz'
|
2015-09-12 15:42:12 +05:30
|
|
|
|