1.1.2 • Published 2 years ago

@alfonz/deployer v1.1.2

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Deployer

Simple utility for deploying (primarily Node.js) applications from git repository.

Getting started

Add deploy script to your repository:

# deploy.sh

yarn 
yarn build

Create deployer.json config file in server directory:

{
  "repo": "git@github.com:AlfonzAlfonz/deployer.git",
  "build": "bash deploy.sh"
}

Run deployer to create a new release:

npx @alfonz/deployer

Deployer by default creates a ./releases directory with release folders and creates symlink to ./current after successful deploy.

Config options

NameDefault ValueDescription
repoRepo uri (required)
releases'./releases'Folder containing release folders
current'./current'Symlink to current release
branchBranch name
buildBuild command
onSuccessCommand which is ran after successful release
maxCount3Max count of releases in releases folder

Example config

{
  "releases": "./releases",
  "current": "./current",
  "repo": "git@github.com:AlfonzAlfonz/deployer.git",
  "branch": "main",
  "build": "bash deploy.sh",
  "limit": 3
}
1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago