-
Notifications
You must be signed in to change notification settings - Fork 3
Setup
This setup uses a neckup user where everything is placed in its home directory (/home/neckup/neckup/).
We'll use the merged server blocks method for Nginx.
You should already have installed Nginx.
useradd -m neckup # Create a neckup user with an home directory.
su neckup # Login as the new user.
cd ~ # cd to its home.
git clone git@github.com:willeponken/neckup.git # In the home directory, clone the repository.
cd neckup # cd to the repository.
go build neckup.go # Compile.
./neckup --help # Show all the available flags.
Insert the /examples/nginx/neckup_merged server block into your Nginx configuration file or as a new file under sites-available and symlink to sites-enabled.
Check the comments and edit the configuration to your preferences.
This repositoy only hosts an Upstart configuration right (feel free to add another init system).
Copy the /examples/upstart/neckup_merged.conf to your /etc/init/ folder, edit the flags inside that file to your preferences.
Test the Nginx configuration using nginx -t and the reload if all is well, start neckup (if you're using Upstart) using service neckup start.
Done!