1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

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

Discussion in 'Plesk Extensions' started by Werner Mairl, Nov 16, 2017.

  1. Werner Mairl

    Werner Mairl New Pleskian

    1
    20%
    Joined:
    Nov 16, 2017
    Messages:
    1
    Likes Received:
    0
    Location:
    VIENNA
    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
     
Loading...