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
| # unicorn | |
| description "unicorn ruby app server" | |
| start on (local-filesystems and net-device-up IFACE=lo and runlevel [2345]) | |
| stop on runlevel [!2345] | |
| env WORKDIR=/data | |
| env PIDFILE=/data/tmp/pids/unicorn.pid | |
| env CFGFILE=/data/config/unicorn.rb |
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
| # Extension that automatically reloads settings after some seconds, to allow | |
| # web interface update settings changes after Rails loading. | |
| module UbiquoExtensions | |
| module SettingsExtension | |
| def self.included(base) | |
| base.class_eval do | |
| class << self | |
| include ClassMethods | |
| cattr_accessor :last_reload_at | |
| cattr_accessor :cache_time |