Update App
-
Update app
- Using argument
- Using file
Use command (edit app using appname):
init edit app --name=<appname> -e=<true/false> -s=<true/false>
Use command (edit app using appid):
init edit app --appid=<appid> --e=<true/false> -s=<true/false>
Flags
--name
- Indicates tha name of the application.
- can use either appname or appid
- required
- Shorthand :
n
--appid
- Indicates the id of the application.
- can use either name or appid
- reuired
--setEnv
- Indicates the environment settings, If you set
setEnv
as 'true' you will be able to configure environments variable for the application. - Optional
- Default :
false
- Shorthand :
e
--setAppSetting
- Indicates the application settings, If you set
setAppSetting
and 'true' you will be able to configure following : PORT, HTTP PATH, Instance size, Number of instances, Vertical auto scaling. - Optional
- Default :
false
- Shorthand :
s
Use command (edit app using appname):
initz edit app --name=<appname> -f <editApp.json/editApp.yaml>
Use command (edit app using appid):
initz edit app --appid=<appid> -f <editApp.json/editApp.yaml>
Example template :
- JSON
- YAML
editApp.json{
"port": 8080,
"http_path": "",
"env_variables": {
"prod": [
{
"key": "PORT",
"type": "env",
"value": "8080"
},
{
"type": "secret_ref",
"value": "670ce1c5cdc6bec4ebc80e8b"
}
],
"stg": [
{
"key": "PORT",
"type": "env",
"value": "8080"
},
{
"type": "secret_ref",
"value": "670ce1c5cdc6bec4ebc80e8c"
}
],
"test": [
{
"key": "PORT",
"type": "env",
"value": "8080"
},
{
"type": "secret_ref",
"value": "670ce1c5cdc6bec4ebc80e8d"
}
]
},
"instance_details": {
"instance_type": "Default",
"vertical_auto_scale": false,
"max": 1,
"min": 0
},
"workspace_id": "6708d321e592cd2d479fe9e8"
}editApp.yamlport: 8080
http_path: ""
env_variables:
prod:
- key: PORT
type: env
value: "8080"
- type: secret_ref
value: 670ce1c5cdc6bec4ebc80e8b
stg:
- key: PORT
type: env
value: "8080"
- type: secret_ref
value: 670ce1c5cdc6bec4ebc80e8c
test:
- key: PORT
type: env
value: "8080"
- type: secret_ref
value: 670ce1c5cdc6bec4ebc80e8d
instance_details:
instancetype: Default
verticalautoscale: false
max: 1
min: 0
workspace_id: 6708d321e592cd2d479fe9e8You can either use the configuration provided in the file above to create the workspace or generate your own example configuration to do so.
Generate Config :
- JSON
- YAML
- To generate json configuration using appname
initz edit app --name=<appname> -t json
- To generate json configuration using appid
initz edit app --appid=<appid> -t json
- To generate json configuration using appname
initz edit app --name=<appname> -t yaml
- To generate json configuration using appid
initz edit app --appid=<appid> -t yaml