This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
afsdfdsfsj lkjf safasdf | |
sdfklsjafsdf | |
safloremq |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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| |
OlderNewer