2.0.0 • Published 2 years ago
@uplift-ltd/sammy v2.0.0
@uplift-ltd/sammy
Installation
npm i --save @uplift-ltd/sammyGetting Started
Prerequisites
Install doctl
MacOS:
brew install doctlUbuntu:
sudo snap install doctlAuthenticating with DigitalOcean
Generate an API token for the team you want to use.
doctl auth init --context upliftYou can log into multiple teams.
doctl auth init --context runbookAnd switch between them:
doctl auth switch --context upliftConfiguring
In your project's package.json, set the context and app IDs.
{
"sammy": {
"context": "runbook",
"apps": {
"production": "DO APP ID",
"staging": "ANOTHER DO APP ID"
}
}
}File Structure
The CLI will create appspec.${env}.yml files. For examples:
appspec.production.yml
appspec.staging.ymlAPI
sammy appspec:get
Download and write the appspec yaml file for the specified environment.
sammy appspec:get --env productionsammy appspec:update
Upload the appspec yaml file for the specified environment to DigitalOcean.
sammy appspec:update --env productionsammy create-deployment
Trigger a new deployment.
sammy create-deployment --env production2.0.0
2 years ago
2.0.0-alpha.0
3 years ago
2.0.0-alpha.1
3 years ago
2.0.0-alpha.2
3 years ago
1.1.3
3 years ago
1.1.3-alpha.1
3 years ago