Skip to content

Instantly share code, notes, and snippets.

View pschichtel's full-sized avatar

Phillip Schichtel pschichtel

View GitHub Profile
@pschichtel
pschichtel / redmine
Created July 19, 2013 23:54 — forked from thanhhh/redmine
init script for redmine, but can easily be used for other ruby apps using puma
#! /bin/bash
# REDMINE
# Maintainer: @thanhhh
# App Version: 2.3.1
APP_ROOT="/home/redmine/redmine"
APP_USER="redmine"
DAEMON_OPTS="-C $APP_ROOT/config/puma.rb"
PID_PATH="$APP_ROOT/tmp/pids"
@pschichtel
pschichtel / puma.rb
Last active December 20, 2015 00:39 — forked from thanhhh/puma.rb
default puma configuration for Redmine, but can be used for any ruby app
#!/usr/bin/env puma
# Start Puma with next command:
# RAILS_ENV=production bundle exec puma -C ./config/puma.rb
# uncomment and customize to run in non-root path
# ENV['RAILS_RELATIVE_URL_ROOT'] = "/redmine"
application_path = '/home/redmine/redmine'
@pschichtel
pschichtel / Redmine installation
Last active December 20, 2015 00:39 — forked from thanhhh/Redmine installation
How to configuration Redmine with puma and running on nginx (based on Gitlab's installation)
Add config/puma.ruby
--------------------
cd /home/redmine/redmine
sudo -u redmine -H curl --output config/puma.rb https://gist.github.com/quickwango/6043161/raw/fdfe2a865c3a0afe912c8784c971ea7ca3e64cfd/puma.rb
Install Init Script
--------------------
Download the init script (will be /etc/init.d/redmine):