norr-merb-manage 0.6 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README +1 -1
- data/bin/merb-manage-ctl +4 -4
- data/config/merb.yml.sample +1 -1
- metadata +1 -1
data/README
CHANGED
@@ -35,6 +35,6 @@ Configuration:
|
|
35
35
|
servers: the amount of servers to start (for clustering/load balancing etc)
|
36
36
|
port: the port to start the Merb application on (in the case of multiple servers, the ports will be sequential from the port specified, i.e. servers set to 3, with port set to 5000, would start the application on 5000, 5001 and 5002)
|
37
37
|
logging: the logging level to pass through to Merb - debug, info, warn, error and fatal
|
38
|
-
|
38
|
+
frozen: set to true to use frozen merb in app (bin/merb). set to false or leave out to use global merb
|
39
39
|
|
40
40
|
Most of these options can be left off if you simply want the Merb defaults - if "servers" isn't specified however, then Merb will be passed the "-d" flag to ensure that the single Merb server will run in daemonized mode.
|
data/bin/merb-manage-ctl
CHANGED
@@ -30,11 +30,11 @@ end
|
|
30
30
|
|
31
31
|
# This starts the server as per the specified yml config
|
32
32
|
def start(yml)
|
33
|
-
# Decide which merb to use,
|
34
|
-
if yml["
|
33
|
+
# Decide which merb to use, frozen merb or global merb
|
34
|
+
if yml["frozen"].nil?
|
35
35
|
command = "merb -m #{yml['path']} "
|
36
36
|
else
|
37
|
-
if yml["
|
37
|
+
if yml["frozen"]
|
38
38
|
command = "#{yml['path']}/bin/merb -m #{yml['path']} "
|
39
39
|
else
|
40
40
|
command = "merb -m #{yml['path']} "
|
@@ -82,4 +82,4 @@ case ARGV[0]
|
|
82
82
|
else
|
83
83
|
# Print out the usage as the arguments didn't match a known action
|
84
84
|
puts "Usage: merb-manage-ctl {start|stop|restart} (-c CONFIG_GLOB)"
|
85
|
-
end
|
85
|
+
end
|
data/config/merb.yml.sample
CHANGED