Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request - Development Mode via App Integration #679

Open
syedc opened this issue Mar 19, 2022 · 1 comment
Open

Feature Request - Development Mode via App Integration #679

syedc opened this issue Mar 19, 2022 · 1 comment

Comments

@syedc
Copy link

syedc commented Mar 19, 2022

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
@AnoopAlias
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants