Sha256: bf08cbd1c44c759a9a2c04c9963cba19d3c884a028d969f0f8d7afb012e5f71c
Contents?: true
Size: 1.18 KB
Versions: 12
Compression:
Stored size: 1.18 KB
Contents
# Setting up gorgon listener using upstart These steps will guarantee that the listener is always running and it will start when the OS boots. They have been tested using Ubuntu 12.04, but these steps should work with any OS that uses upstart. We are assuming you are using `rvm` 1. `mkdir ~/.gorgon && cd ~/.gorgon` 1. `rvm use ruby-1.9.3` or whatever version of ruby you use. 1. `gem install gorgon foreman` 1. Place your _gorgon\_listener.json_ in this directory. See [here](https://github.com/Fitzsimmons/Gorgon/blob/master/gorgon_listener.json.sample) for a _gorgon\_listener.json_ example. 1. `echo 'listener: [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" && ` `rvm ruby-1.9.3 do gorgon listen > listener.out 2> listener.err' > Procfile` 1. ``rvmsudo foreman export upstart /etc/init -a gorgon -u `whoami` -c listener=1`` 1. `sudo start gorgon` 1. open ’/etc/init/gorgon.conf’ and add `start on runlevel [2345]` at the top of the file 1. Check if listener is running: Run `tail /tmp/gorgon-remote.log` and the last line should say “Waiting for jobs…” If you modify ~/.gorgon/gorgon_listener.json, make sure you restart the listener by running `sudo restart gorgon`
Version data entries
12 entries across 12 versions & 1 rubygems