This repository has been archived by the owner on Apr 26, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Add Angel module and servers
- Loading branch information
1 parent
30564f5
commit 3cb0e4b
Showing
6 changed files
with
97 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
require 'servers/mongrel' | ||
require 'servers/thin' | ||
require 'servers/ebb' |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
module Angel | ||
def self.start_ebb(config) | ||
"ebb_rails start " + [['-d'], | ||
['-p', config['port']], | ||
['-c', config['cwd']], | ||
['-P', config['pid_file']], | ||
['-l', config['log_file']], | ||
['-e', config['environment']]].join(' ') | ||
end | ||
|
||
def self.stop_ebb(config) | ||
"ebb_rails stop -P #{config['pid_file']}" | ||
end | ||
|
||
def self.restart_ebb(config) | ||
stop_ebb + " && " + start_ebb | ||
end | ||
end |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
module Angel | ||
def self.start_mongrel(config) | ||
"mongrel_rails start " + [['-d'], | ||
['-p', config['port']], | ||
['-c', config['cwd']], | ||
['-a', config['address']], | ||
['-P', config['pid_file']], | ||
['-l', config['log_file']], | ||
['-e', config['environment']]].join(' ') | ||
end | ||
|
||
def self.stop_mongrel(config) | ||
"mongrel_rails stop -P #{config['pid_file']}" | ||
end | ||
|
||
def self.restart_mongrel(config) | ||
"mongrel_rails restart -P #{config['pid_file']}" | ||
end | ||
end |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
module Angel | ||
def self.start_thin(config) | ||
"thin start " + [['-d'], | ||
['-p', config['port']], | ||
['-c', config['cwd']], | ||
['-a', config['address']], | ||
['-P', config['pid_file']], | ||
['-l', config['log_file']], | ||
['-e', config['environment']]].join(' ') | ||
end | ||
|
||
def self.stop_thin(config) | ||
"thin stop -P #{config['pid_file']}" | ||
end | ||
|
||
def self.restart_thin(config) | ||
"thin restart -P #{config['pid_file']}" | ||
end | ||
end |