AUTOM8N
AUTOM8N copied to clipboard
Feature Request - Development Mode via App Integration
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:
- User enabled Dev Mode in Wordpress, which creates a file/flag in the /home/user directory (or adds a flag to the nginx.conf file)
- Xtendweb detects the flag and enables the normal Dev Mode
- User disables Dev Mode in WordPress (so removes the file or flag in nginx.conf). Xtendweb detects the change and disables Dev mode
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