Commit 070bee7a authored by Richard Weinhold's avatar Richard Weinhold 🎩

added changes from Gabriel Bretschner

some fixes
parent 2f961c21
# daemontools service scripts for uberspace
This folder contains two scripts to manage the services needed by gitlab.
## usage
if you haven't done it already, create a bin folder in your home directory:
mkdir ~/bin
copy `gitlab` and `sidekiq` in this `bin` folder.
**IMPORTANT** if your gitlab instance is __not__ installed in ~/gitlab you need to edit both service scripts and set the path according to your needs!
Setup two deamons according to [uberspace documentation](https://wiki.uberspace.de/system:daemontools):
uberspace-setup-service run-sidekiq ~/bin/sidekiq
uberspace-setup-service run-gitlab ~/bin/gitlab
That's it! Happy coding :-)
## changelog
### 2014-07-27
initial version of this README. Test with [gitlab 7.0 stable](https://about.gitlab.com/) on [Uberspace](https://uberspace.de) CentOS 5 host.
#!/bin/bash
########################################################################
#
# 2014-06-27
# Gabriel Bretschner
# info@kanedo.net
#
########################################################################
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
########################################################################
#
# Uberspace Service-Script to start gitlaband redis with daemontools
# in order to start redis use the global service script
# for more information see https://uberspace.de/dokuwiki/database:redis#einrichtung
#
########################################################################
#
# path to gitlab installation
#
GITLAB_PATH=$HOME/gitlab
cd $GITLAB_PATH
bundle exec unicorn_rails -c "$GITLAB_PATH/config/unicorn.rb" -E "production"
\ No newline at end of file
#!/bin/sh
########################################################################
#
# 2014-06-27
# Gabriel Bretschner
# info@kanedo.net
#
########################################################################
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
########################################################################
#
# Uberspace Service-Script to start sidekiq with daemontools
#
########################################################################
app_root="$HOME/gitlab"
RAILS_ENV="production"
sidekiq_pidfile="$app_root/tmp/pids/sidekiq.pid"
sidekiq_logfile="$app_root/log/sidekiq.log"
cd $app_root
# Now let's go!
bundle exec sidekiq -q post_receive -q mailer -q system_hook -q project_web_hook -q gitlab_shell -q common -q default -e $RAILS_ENV -P $sidekiq_pidfile $@ >> $sidekiq_logfile 2>&1
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment