• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Question [NodeJS Extension] How i can call nodejs related tasks using XML-API

Werner Mairl

New Pleskian
tasks where i'm interested:

npm run (script execution)
restart app (like the button with the same title inside the extension ui)*
npm install

there is some documation about get/set of default NodeJS settings for the extension BUT missing any information about tasks like this.

I can assume that the xml-syntax must be like the following:


<packet>
<extension>
<call>
<nodejs>
<XXXX>
.......
</XXX>
</nodejs>
</call>
</extension>
</packet>

anyone can help me or point me in the right direction.....

big picture/what i do using XML-API
1. Git Pull Upadate
2. npm-script to do some prepartions, including multiple npm installs
3. restart the app

the entire workflow is up and running with the extension UI, but for dev-ops i need it over XML-API!

regards
Werner
 
Back
Top