Skip to content
William Wennerström edited this page Jul 2, 2015 · 1 revision

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.

Neckup user

useradd -m neckup # Create a neckup user with an home directory.
su neckup # Login as the new user.
cd ~ # cd to its home.

Download neckup

git clone git@github.com:willeponken/neckup.git # In the home directory, clone the repository.
cd neckup # cd to the repository.

Compile neckup

go build neckup.go # Compile.
./neckup --help # Show all the available flags.

Configure Nginx

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.

Init script

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.

Finish

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!

Clone this wiki locally