A sample godrb watch for Adhearsion JRuby.
- Note that godrb does not currently work under JRuby. You'll need a ruby manager like rvm or rbenv. That way, you can run your god under CRuby and your adhearsion app under JRuby.
- This script is not perfect. It occasionally produces empty or corrupt PID files. -_-
- This script makes a few assumptions.. tweak as necessary if any of this is inaccurate:
- It assumes you use rvm
- It assumes you use CentOS 6
- It assumes that you have Java installed at
/opt/jdk1.7.0_51
. - It assumes you use capistrano, with a directory structure like so:
/srv
└── phone
└── apptastic
├── current # Home of your app. Gemfile, .ruby-version, etc. should live here.
│ ├── Gemfile
│ ├── Gemfile.lock
│ ├── Procfile
│ └── config
│ └── god
│ └── adhearsion.god
└── shared
├── config
│ └── god_environment.yml
├── log # Where logs will be written
└── pids # Where adhearsion.pid will be written