0
-merb-manage: a tool for controlling and configuring Merb applications
0
\ No newline at end of file
0
+merb-manage: a tool for controlling and configuring Merb applications
0
+ merb-manage-ctl [start|stop|restart] (-c CONFIG_DIR)
0
+ start: starts any instances of Merb applications configured within the CONFIG_DIR (defaults to /etc/merb-manage)
0
+ stop: stops any instances of Merb applications configured within the CONFIG_DIR
0
+ restart: stops, then starts any instances of Merb applications configured within the CONFIG_DIR
0
+ merb-manage [start|stop|restart]
0
+ this script can be used as a startup script, for example within /etc/init.d, to call out to merb-manage-ctl to start Merb applications when a server starts
0
+ YAML configuration files define the Merb application settings for merb-manage. Generally you can store the configuration within the config directory of your Merb application (config/merb-manage.yml), and then symlink this to a file within the configuration directory (/etc/merb-manage/myapp.yml).
0
+ Configuration might look like the following:
0
+ path: /var/www/sample_app
0
+ environment: production
0
+ Here are the supported parameters:
0
+ user: the user that the application should run as - if specified, the Merb application is started with an su USER -c "COMMAND", and the user is passed through to the Merb startup command
0
+ group: the group that the application runs under, passed through to the Merb startup command
0
+ adapter: the web application server adapter, such as mongrel, thin etc - anything that your installation of Merb supports
0
+ environment: the Merb environment to run as, development, test or production
0
+ servers: the amount of servers to start (for clustering/load balancing etc)
0
+ 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)
0
+ logging: the logging level to pass through to Merb - debug, info, warn, error and fatal
0
+ 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.
0
\ No newline at end of file
Comments
No one has commented yet.