Logo

Command Palette

Search for a command to run...

settings set

Sets and applies the value of a setting to an application.

$ cx settings set --stack <application name> <setting> <values>

Options

ArgumentRequired?DefaultDescription
--stack, -s <application name>yesName of the application
<setting>yesThe setting(s) to query (can be used multiple times)
<values>yesThe values to apply to the setting

Examples

$ cx settings set -s mystack git.branch dev
$ cx settings set -s mystack allowed.web.source 191.203.12.10
$ cx settings set -s mystack allowed.web.source anywhere
$ cx settings set -s mystack maintenance.mode  1|true|on|enable
$ cx settings set -s mystack maintenance.mode  0|false|off|disable

Available settings

SettingDefaultDescription
allowed.web.sourcenil i.e. 0.0.0.0IP addresses that are allowed to access a stacks web servers (with IP addresses in the command or a CSV file with IP addresses as input)
asset.prefixnilIf you change your default Rails assets folder, you can set it here
continuous.deployfalseEnable or disable continuous deployment on Github.
custom.build.command-Set custom build command. Only applies to Sinatra or Padrino stacks
custom.deploy.command-Set custom deploy command. Only applies to Sinatra or Padrino stacks
db.check.backup.sizetrueEnable/Disable Check free space before taking backup
git.branch-Change the Git branch of the application repository
git.repository-Change the Git repository URL
logrotate.app.frequencydailyFor application specific log files accepted value: hourly  daily  weekly  monthly
logrotate.app.keep.count14The number of log files to keep for each logfile
logrotate.server.frequencydailyFor server specific log files accepted values: hourly  daily  weekly monthly
logrotate.server.keep.count14The number of log files to keep for each logfile
maintenance.modefalseEnable or disable maintenance mode on the application.
reconfigure.nginxtrueIf set to true, it will regenerate Nginx configuration and restart it (only on the next deployment)
run.deploy.commandtrueEnable or disable option run deploy command on every deployment ("database migrations" for Rails stacks).
stack.nameView your application name