Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set environment variables in cloudcontrol?

I'm migrating from Heroku to cloudcontrol and I can't find documentation on how to set server environment variables. How is it posible?

like image 831
pedro_witoi Avatar asked Jan 14 '23 10:01

pedro_witoi


1 Answers

There is a config addon for cctrlapp.

The following code should do it: cctrlapp app_name/dep_name addon.add config.free --APPLICATION_ENV=value

May that help you?

Edit: Here is the link to the addon documentation: https://www.cloudcontrol.com/dev-center/Add-on%20Documentation/Deployment/Custom%20Config

Edit: As of cctrl 1.8.1 you can add config variables this way:

$ cctrlapp app_name/dep_name config.add PARAM1=VALUE1 PARAM2=VALUE2 [...]

and remove them using:

$ cctrlapp app_name/dep_name config.remove PARAM1 PARAM2 [...]
like image 122
ConcurrentHashMap Avatar answered Feb 19 '23 01:02

ConcurrentHashMap