AnoopAlias / AUTOM8N

AUTOM8N is a WHM/cPanel plugin providing a DNS load-balanced, high available, horizontally scaling webstack and offering active-active-redundancy-high-availability-and-native-nginx-on-cpanel
https://autom8n.com/
GNU General Public License v3.0
107 stars 53 forks source link

Feature Request - Development Mode via App Integration #679

Open syedc opened 2 years ago

syedc commented 2 years ago

The Dev Mode implementation in the cPanel plugin is great, but we are hoping to take it a step further, and allow dev mode to be called from within web apps (i.e. WordPress).

Without giving WordPress cPanel API access, was hoping a functionality logic like:

AnoopAlias commented 2 years ago

A WordPress button with the on_submit code if implemented like open file /opt/nDeploy/domain-data/domain.com and parse it using PHP yaml ( https://www.php.net/manual/en/book.yaml.php ) parse the file and edit key dev_mode and change its value to "enabled" yaml.save the file

The dev mode will be enabled!

Similarly to disable the value must be set to dev_mode: disabled