This function edits a Passenger application for an account.
Note:
When you disable the Web Server role, the system disables this function.
SecurityBasicAuth
Request
query Parameters
name
required
string
The application’s current name.
Example: name=Ruby Slippers
clear_envvars
integer
Default: 0
Whether to clear the application’s environment variables.
Enum:01
Example: clear_envvars=0
deployment_mode
string
The new server environment in which to run the application. If you do not use this parameter, the function does not change the application’s server environment.
development — Sets the application to run in a development environment.
production — Sets the application to run in a production environment.
Enum:"production""development"
Example: deployment_mode=production
domain
string <domain>
The application’s new domain. If you do not use this parameter, the function does not change the application’s domain.
Example: domain=toto.com
enabled
integer
Default: 1
Whether to enable the application and generate the web server configuration for it.
1 — Enable the application and generate the web server configuration.
0 — Don’t enable the application and generate the web server configuration.
Enum:01
Example: enabled=1
envvar_name
Array of strings
New set of environment variables for the application.
Important:
The function replaces all current environment variables with the variables that you pass in this parameter.
Note:
For each envvar_name parameter you send you must include an envvar_value parameter.