Skip to content

Latest commit

 

History

History
64 lines (50 loc) · 1021 Bytes

README.md

File metadata and controls

64 lines (50 loc) · 1021 Bytes

dlay-cli

Install

npm install dlay -g

Credentials

Exported env var

DLAY_WORKER="adlayer:8d8fs949rd9sfdf90300030fdfdf0"
DLAY_SECRET="0df0oj300000-0099330"
dlay worker leia --jobs bill.js

Command

# Passing credentials on execution
DLAY_WORKER=adlayer:8d8fs949rd9sfdf90300030fdfdf0 DLAY_SECRET=0df0oj300000-0099330 dlay worker biller --jobs biller.js

dotfiles

touch .env
echo "DLAY_WORKER="adlayer:8d8fs949rd9sfdf90300030fdfdf0"" >> .env
echo "DLAY_SECRET="0df0oj300000-0099330"" >> .env

dlay worker lando --jobs bill.js -e .env

Workers

Explicit job files

dlay worker leia --jobs bill.js

Multiple job files

dlay worker leia --jobs bill.js collec.js

Relative module as job

dlay worker biller

Child module as a job

dlay worker luke --jobs ./bill ./collect

Jobs

Deploy file

dlay job deploy index.js

Deploy the package

dlay job deploy