debian-mirror-gitlab/debian/gitlab-rails-console.sh
2021-06-21 23:01:13 +05:30

12 lines
268 B
Bash
Executable file

#! /bin/sh
set -e
# Read debian specific configuration
. /etc/gitlab-common/gitlab-common.conf
. /etc/gitlab/gitlab-debian.conf
export DB RAILS_ENV GEM_HOME
cd /usr/share/gitlab
runuser -u ${gitlab_user} -- sh -c "/usr/bin/bundle exec rails console -e production"