November 2018
Intermediate to advanced
404 pages
10h 16m
English
In many cases, you'd like to set some environment variables for your Vapor application. The vapor cloud toolbox provides vapor cloud config just for that.
To create or modify configuration variables, use the modify in the following syntax:
$ vapor cloud config modify --app=my-app --env=staging VAR1=KEY1 VAR2=KEY2For example, you create a USERNAME environment variable and set its initial value to ANGUS in the following way:
$ vapor cloud config modify --app=firstvapor-angus --env=beta USERNAME=ANGUSThe output of this command confirms that the USERNAME environment variable has been created and it is assigned with the ANGUS value:
app: FirstVaporenv: betaUSERNAME: ANGUSUpdating configs [Done]Use ...
Read now
Unlock full access