debian-mirror-gitlab/debian/rake-tasks.sh
Praveen Arimbrathodiyil 0a25e32367 install yml files
2015-10-24 12:51:45 +05:30

10 lines
343 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 db:create db:schema:load'
echo "Precompiling assets..."
su ${gitlab_user} -s /bin/sh -c 'bundle exec rake assets:precompile'
su ${gitlab_user} -s /bin/sh -c 'touch public/source.tar.gz'