Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Installation::rest interface

ShellFu edited this page Nov 3, 2013 · 3 revisions

~$ automaton rest interface installation

Before continuing be sure you have already completed the command-line interface installation instructions.

Create Directories & Set Permissions
[shellfu@automaton automaton]$ sudo mkdir /var/run/automaton/
[shellfu@automaton automaton]$ sudo chown -R puppet:puppet /var/run/automaton/
Configure Nginx & Unicorn, Alter Path in confif.ru and Link config.ru

If you cloned the repository into /opt/ then you should not need to modify the >require '/opt/automaton/bin/automaton'< line, and can simply move onto linking config.ru.

[shellfu@automaton automaton]$ sudo cp rack/14567_automaton.conf /etc/nginx/conf.d/
[shellfu@automaton automaton]$ sudo vim /etc/nginx/conf.d/14567_automaton.conf
[shellfu@automaton automaton]$ sudo vim rack/automaton.conf
[shellfu@automaton automaton]$ sudo vim rack/config.ru
[shellfu@automaton automaton]$ sudo ln -s /opt/automaton/rack/config.ru /opt/automaton/config.ru
Reload Nginx & Load Automaton
[shellfu@automaton automaton]$ sudo service nginx reload
[shellfu@automaton automaton]$ bundle exec unicorn -c ./rack/automaton.conf

Clone this wiki locally