replace gitlab:setup with db:schema:load
This commit is contained in:
parent
8c7b3458fb
commit
6e94392784
2 changed files with 8 additions and 10 deletions
3
debian/changelog
vendored
3
debian/changelog
vendored
|
@ -6,6 +6,9 @@ gitlab (8.4.3+dfsg-10) UNRELEASED; urgency=medium
|
||||||
* Fix typo in debian/README.Debian.
|
* Fix typo in debian/README.Debian.
|
||||||
* 0038-relax-net-ssh.patch : Add dep3 header.
|
* 0038-relax-net-ssh.patch : Add dep3 header.
|
||||||
|
|
||||||
|
[ Pirate Praveen ]
|
||||||
|
* Replace gitlab:setup with db:schema:load and db:seed_fu (Closes: #815798)
|
||||||
|
|
||||||
-- Balasankar C <balasankarc@autistici.org> Sun, 28 Feb 2016 22:43:02 +0530
|
-- Balasankar C <balasankarc@autistici.org> Sun, 28 Feb 2016 22:43:02 +0530
|
||||||
|
|
||||||
gitlab (8.4.3+dfsg-9) unstable; urgency=medium
|
gitlab (8.4.3+dfsg-9) unstable; urgency=medium
|
||||||
|
|
15
debian/rake-tasks.sh
vendored
15
debian/rake-tasks.sh
vendored
|
@ -18,16 +18,11 @@ if ! [ -f "${gitlab_app_root}/config/secrets.yml" ]; then
|
||||||
}
|
}
|
||||||
fi
|
fi
|
||||||
echo "Initializing database..."
|
echo "Initializing database..."
|
||||||
if [ "$(su postgres -c 'psql gitlab_production -c \\d')" = \
|
su ${gitlab_user} -s /bin/sh -c 'bundle exec rake db:schema:load'
|
||||||
"No relations found." ]; then
|
su ${gitlab_user} -s /bin/sh -c 'bundle exec rake db:seed_fu'
|
||||||
su ${gitlab_user} -s /bin/sh -c 'bundle exec rake gitlab:setup \
|
su ${gitlab_user} -s /bin/sh -c 'bundle exec rake gitlab:shell:install \
|
||||||
RAILS_ENV=production force=yes'
|
REDIS_URL=redis://localhost:6379 \
|
||||||
su ${gitlab_user} -s /bin/sh -c 'bundle exec rake gitlab:shell:install \
|
SHELL_ROOT_PATH=/usr/share/gitlab-shell RAILS_ENV=production'
|
||||||
REDIS_URL=redis://localhost:6379 \
|
|
||||||
SHELL_ROOT_PATH=/usr/share/gitlab-shell RAILS_ENV=production'
|
|
||||||
else
|
|
||||||
echo "gitlab_production database is not empty, skipping gitlab setup"
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "Precompiling assets..."
|
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 assets:precompile RAILS_ENV=production'
|
||||||
|
|
Loading…
Reference in a new issue