Updating Connection Timeout and Request Timeout in Developer Portal

Not applicable

When we login to Developer Portal and browse to "Configuration" > 'DevPortal", we see two fields:

- Connection Timeout

- Request Timeout

Can values of these fields be updated through command line, using drush? If yes, what is the drush command.

0 2 299
2 REPLIES 2

Not applicable

The way we can edit various parameters, as mentioned in:

https://community.apigee.com/questions/19736/developer-portal-silent-install.html

Can we edit connection_timeout and request_timeout in the same fashion, using

drush site-install apigee

Unfortunately this is not easily configurable by drush. These values are stored in an encrypted file in the private directory.

To alter them via drush you'd need to use `drush eval` and write a short script. Using drush eval means the script will be executed in the context of a full Drupal bootstrap. You would want to load the settings file, decrypt it, alter the array values, encrypt it, and write the file again. See devconnect_get_org_settings() for an example of how this is done.