Skip to content

Instantly share code, notes, and snippets.

@kgrz
Last active August 29, 2015 14:02
Show Gist options
  • Save kgrz/48aa84317b7c02c6fb2f to your computer and use it in GitHub Desktop.
Save kgrz/48aa84317b7c02c6fb2f to your computer and use it in GitHub Desktop.
Zeus + Invoker + Rails http://rails.dev
[zeus]
directory = .
command = zeus start
[next_secret_project]
directory = .
command = zeus server -p $PORT

Start the processes with the following command:

$ invoker start invoker.ini

Both the zeus server and the rails server will start. However, the invoker server log will have zeus: as the key. But that doesn't mean the rails server is not running. To pipe the rails server log, use the following command:

$ invoker tail next_secret_project

If zeus or next_secret_project have to be restarted, use the following commands:

$ invoker reload zeus

(or)

$ invoker reload next_secret_project

The rails project will be accessible at http://rails.dev if you've completed the invoker setup process

@halilim
Copy link

halilim commented May 29, 2015

Couldn't get this to run. Or rather, next_secret_project.dev shows an "Application not found" message.

P.S.: Immediately starting both results in "Please start zeus first" error for the server process. So I run it like sleep 5 && zeus server -p $PORT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment