Skip to content

Instantly share code, notes, and snippets.

View PabloC's full-sized avatar

PabloC PabloC

View GitHub Profile
afsdfdsfsj lkjf safasdf
sdfklsjafsdf
safloremq
#!/bin/sh
# Author: Carl Youngblood, 2010
# Based on http://www.novell.com/coolsolutions/feature/15380.html
### BEGIN INIT INFO
# Provides: bluepill
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
@PabloC
PabloC / gist:5274647
Last active December 15, 2015 14:29
discourse.pill
rails_env = ENV['RAILS_ENV'] || "production"
rails_root = ENV['RAILS_ROOT'] || "/var/www/discourse"
user = ENV["DISCOURSE_USER"] || ENV['USER'] || 'user_running_app'
group = ENV["DISCOURSE_GROUP"] || ENV['GROUP'] || 'www-data'
num_webs = ENV["NUM_WEBS"].to_i > 0 ? ENV["NUM_WEBS"].to_i : 4
# to debug use
#Bluepill.application("your_app", :foreground => true) do |app|
Bluepill.application("discourse") do |app|