Skip to content

Commit 98609fd

Browse files
committed
feature(cloudcmd) add support of CLOUDCMD_ROOT (#64)
1 parent a0f8d02 commit 98609fd

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

HELP.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@ Some config options can be overridden with `environment variables` such:
346346
- `CLOUDCMD_AUTH` - enable authentication
347347
- `CLOUDCMD_USERNAME` - set username
348348
- `CLOUDCMD_PASSWORD` - set password
349+
- `CLOUDCMD_ROOT` - set root directory
349350

350351
Menu
351352
---------------

app.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@
6666
"description": "set password",
6767
"value": "toor",
6868
"required": false
69+
},
70+
"CLOUDCMD_ROOT": {
71+
"description": "set root dir",
72+
"value": "",
73+
"required": false
6974
}
7075
}
7176
}

bin/cloudcmd.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const args = require('minimist')(argv.slice(2), {
5757
packer : config('packer') || 'tar',
5858
zip : config('zip'),
5959
username : env('username') || config('username'),
60-
root : config('root'),
60+
root : env('root') || config('root'),
6161
prefix : config('prefix'),
6262
progress : config('progress'),
6363
console : choose(env.bool('console'), config('console')),

0 commit comments

Comments
 (0)