You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
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:
The text was updated successfully, but these errors were encountered: