Skip to content

ashtuchkin/node-template

Repository files navigation

node-template

A template for nodejs project with easy git deployment.

TODO: Documentation.

Deployment installation

# 1. On server, ssh git@<host>:
> mkdir <project name>
> cd <project name>
> git init
> git config receive.denyCurrentBranch ignore

# 2. On client: 
> git remote add prod git@<host>:<project name>
> git push prod master

# 3. On server:
> git checkout master
> cp .env.sample .env
> nano .env # Edit env variables as needed.
> config/restart

# 4. After installation, deploy is performed as (on client):
> git push prod

About

A template for git-deployable node/mongo project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published