• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Question Programmatically restart Node applications on Plesk

Hunter75

New Pleskian
We are using Plesk to host our production services.

Basically, when I deploy the application to Plesk using Git, I need to press Restart application within the Node page on Plesk GUI and that works well.

But in some cases I need to do that pragmatically, I need to automatically restart Node service. Does Plesk offer such functionality? Maybe, some kind of API that listens to calls or else within Linux shell itself.
 
Hello, @futureweb . There is no native way to restart the application through the command line. The workaround I can suggest is to try the following:

  1. Connect to the server via SSH

  2. Create the restart.txt file at the application's tmp folder:

    sudo -u jdoe -g psacln touch /var/www/vhosts/example.com/tmp/restart.txt

    * jdoe is to be replaced with the subscription's system user. Can be checked at (Domains > example.com > Web Hosting Access)

    Meanwhile, the path should be checked on your end as it depends on the application's location.
 
Back
Top