0.0.1 • Published 2 months ago

rpi-cli v0.0.1

Weekly downloads
7
License
MIT
Repository
github
Last release
2 months ago

Target workflow - docker application

File structure

.
└─ project
   ├── ...
   └── dist
      ├── Dockerfile
      └── ...

Dockerfile content

Use ARG to declare variables passed with rpi-deploy --vars option (mainly PORT)

# ...

ARG PORT

EXPOSE $PORT

# ...

Deploy on server

# create zip for target application
$ rpi zip project/dist project.zip
# deploy application
$ rpi deploy ./project.zip --vars PORT=8080

Development

# install dependencies
yarn install
# build cli
yarn build-local
# link the package globally
npm link
# test cli
rpi -h