Enterprise

Deployment

Docker and Kubernetes generation.

1 min readDocumentationEdit this page

Generate#

bash
rest deploy

Creates deploy/Dockerfile, deploy/deployment.yaml, deploy/deploy.sh.

Docker#

bash
docker build -t my-api .
docker run -p 3000:3000 --env-file .env my-api

Kubernetes#

bash
kubectl apply -f deploy/deployment.yaml

Production#

bash
npm run build
node --expose-gc dist/main.js

Help improve the documentation

AxilJS is open source and documentation improvements are welcome.

AxilJS DocumentationMIT License · Built by SyntaxilitY