# deployment-tools

Command line toolkit to aid deployment of containers and static files

## Getting started

Make sure NodeJs and npm is installed and Docker and Caddy is up and running
```
npx @ossy-se/deployment-tools start
npx @ossy-se/deployment-tools deploy --ossyfile ./ossy.js
```

## Available commands
| Command | Description |
|---------|-------------|
| start | starts a node server in the background that exposes a web API on port 3000. |
| stop | stops the server started with `start` |
| status | prints the status of the node server |
| deploy | make a deployment, the API needs to be up and running |

## Configuration

### Environment variables
| Name | Default | Description |
|------|---------|-------------|
| DEPLOYMENT_TOOLS_DOMAIN | localhost | the domain that containers are deployed to as well as the domain the web api is available on |
| DEPLOYMENT_TOOLS_SUBDOMAIN | local-dev.ci | subdomain of the web api |
| DEPLOYMENT_TOOLS_PORT | 3000 | port of the web api |
