0.0.3 • Published 6 years ago
blaz-cli v0.0.3
Server Setup
Add new server
blaz server addList configured servers
blaz server listRemove a server
blaz server removeDeploy
Deploy your project on Server
blaz deployDeploy current folder
blaz deploy -f . -a sample-app -h https://server.example.comDeploy a tar file
blaz deploy -t myapp.tar -a sample-app -h https://server.example.comDeploy a zip file
blaz deploy -z myapp.zip -a sample-app -h https://server.example.comDeploy current branch
blaz deploy -b master -a sample-app -h https://server.example.comDeploy docker image
blaz deploy -i myapp:latest -a sample-app -h https://server.example.comDeploy using local config file
blaz deploy -c blaz.jsonblaz.json
{
"server": "https://server.example.com",
"ipv4": "127.0.0.1",
"accessKey": "e42e2568c8d6d63501de60df39b6a00f9bb80818abb9cacb1bc234b6",
"app": "my-app"
}Arguments
| Argument | Name | Description |
|---|---|---|
| f , folder | folder | Deploys current folder |
| t , tar | tar file | Deploys a tar file |
| z , zip | zip file | Deploys a zip file |
| b , branch | branch | Deploys current branch |
| a , app | app | Specify the app name |
| h , host | host | Specify the host name |
| m , mode | build mode | eg. local:1, runner:runnerName |
local - builds locally, 1 - uses 1 cpu ( default half of system cpu ) | ||
runner - specifying custom runner, runnerName - name of the runner | ||
| by default app builds on primary server/runner based on blaz settings |