work off today
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
Mozo server backend README
|
||||
=====================================
|
||||
|
||||
Application architecture
|
||||
-----------------------------------------------
|
||||
|
||||
|
||||
Server side monit config
|
||||
--------------------------------------------------
|
||||
Could be in `/etc/monit/monitrc`:
|
||||
```
|
||||
# Monit configuration for Puma
|
||||
# Service name: puma_mozo.bar_production
|
||||
#
|
||||
check process puma_mozo.bar_production
|
||||
with pidfile "/var/www/mozo.bar/shared/tmp/pids/puma.pid"
|
||||
group mozo
|
||||
start program = "/usr/bin/sudo -u root /bin/bash -c 'cd /var/www/mozo.bar/current && /usr/local/rvm/bin/rvm default do bundle exec puma -C /var/www/mozo.bar/shared/puma.rb --daemon'"
|
||||
stop program = "/usr/bin/sudo -u root /bin/bash -c 'cd /var/www/mozo.bar/current && /usr/local/rvm/bin/rvm default do bundle exec pumactl -S /var/www/mozo.bar/shared/tmp/pids/puma.state stop'"
|
||||
|
||||
check process DRBcounter with pidfile /var/www/mozo.bar/shared/tmp/pids/DRBcounter.pid
|
||||
group mozo
|
||||
start program = "/bin/bash --login -c '/var/www/mozo.bar/releases/20150123150713/bin/drb_counter.rb start -- production'"
|
||||
stop program = "/bin/bash --login -c '/var/www/mozo.bar/releases/20150123150713/bin/drb_counter.rb stop'"
|
||||
|
||||
check process faye with pidfile /var/www/mozo.bar/shared/tmp/pids/faye.pid
|
||||
group mozo
|
||||
start program = "/bin/bash --login -c 'thin start -d -R /var/www/mozo.bar/releases/20150123150713/faye/config.ru -p 9296 --pid /var/www/mozo.bar/shared/tmp/pids/faye.pid'"
|
||||
stop program = "/bin/bash -c 'kill -15 $(lsof -i:9296 -t); true'"
|
||||
```
|
||||
Reference in New Issue
Block a user