walnut.js/SETUP.md

25 lines
612 B
Markdown
Raw Normal View History

2015-04-01 16:46:11 +00:00
# secure the server with https://coolaj86.com/articles/securing-your-vps-for-the-semi-paranoid.html
# install walnut
sudo mkdir /srv/walnut
sudo chown walnut:walnut -R /srv/walnut
pushd /srv/walnut
git init
git remote origin add git@github.com:daplie/walnut.git
git pull
npm install
# copy uid and guid to ./walnut.js
id
vim walnut.js
# configure redirects
rsync -av redirects.sample.json redirects.json
2015-04-01 17:47:38 +00:00
# TODO create dummy certs
2015-04-01 16:46:11 +00:00
# create and start upstart service
sudo rsync -av upstart-walnut /etc/init/walnut.conf
# for init.d: sudo rsync -av init.d-walnut /etc/init.d/walnut
sudo service walnut restart