Very simple, git-based Node.js deployment based on GitReceive and Forever
#How to use
- To set up your repo for deployment do
git remote add server git@YOURSERVER:your_repo.git
- To deploy do a
git push server
Enjoy!
#Simple setup (recommended) In a terminal with root access, run
curl https://raw.github.com/AVGP/eternity/master/bootstrap.sh | bash
First, you need to install GitReceive.
Make sure you ran the gitreceive init
.
Replace the /home/git/receiver
with receiver
from this repository.
Create a repository directory at /var/repos
and change the owner to git
:
$ mkdir /var/repos
$ chown -R git:git /var/repos
Users need to copy their public key to the server:
$ cat ~/.ssh/id_rsa.pub | ssh you@yourserver.com "sudo gitreceive upload-key <username>"
Clone this repository into /home/git
and run ``npm install`.