eggd is a git and foreman autodeploy daemon for Procfile apps on Amazon EC2 instances. It's written in Go and uses an interface to the Linux filesystem's inotify API to restart foreman when a git push is detected.
(Experimental, not for general use yet.)
You will need Go installed. Running
sudo apt-get install golang
suffices. To build and install eggd to /usr/local/bin
:
git clone https://github.com/learningcurve/eggd.git
cd eggd && make && sudo make install
Set the variable $INSTALL
to change the path.
TODO: upstart support.
-
In your project directory, make sure you have a Procfile in the root directory and a git remote set up to a bare repository on your EC2 instance.
-
On your EC2 instance, let eggd track your remote repository:
eggd add /path/to/remote/repo.git
-
In your project repository, push your commits to your EC2 remote:
git push your-remote your-branch
-
eggd will run the Procfile on your instance. Profit!
Currently tested on the Ubuntu Server 12.04 EC2 image.
TODO