[DRE-commits] [gitlab] 02/05: run migrations when db exist
Praveen Arimbrathodiyil
praveen at moszumanska.debian.org
Tue Apr 5 09:00:50 UTC 2016
This is an automated email from the git hooks/post-receive script.
praveen pushed a commit to branch master
in repository gitlab.
commit 2d8014dee1428197d1f3143838597acca3a865e6
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date: Tue Apr 5 12:17:23 2016 +0530
run migrations when db exist
---
debian/changelog | 4 +++-
debian/rake-tasks.sh | 1 +
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index cbf1074..21dc252 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,8 @@
gitlab (8.5.8+dfsg-4) UNRELEASED; urgency=medium
- * Tighten version requirements for dependencies
+ * Tighten version requirements for dependencies
+ * Fix permissions for uploads
+ * Run db:migrate when db exist
-- Pirate Praveen <praveen at debian.org> Tue, 05 Apr 2016 11:38:52 +0530
diff --git a/debian/rake-tasks.sh b/debian/rake-tasks.sh
index d23e964..5077c8f 100755
--- a/debian/rake-tasks.sh
+++ b/debian/rake-tasks.sh
@@ -27,6 +27,7 @@ if [ "$(LANG=C su postgres -c "psql gitlab_production -c \"\d\"")" = \
SHELL_ROOT_PATH=/usr/share/gitlab-shell RAILS_ENV=production'
else
echo "gitlab_production database is not empty, skipping gitlab setup"
+ su ${gitlab_user} -s /bin/sh -c 'bundle exec rake db:migrate'
fi
echo "Precompiling assets..."
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/gitlab.git
More information about the Pkg-ruby-extras-commits
mailing list