How to restart Passenger WSGI (Python) from command line ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • 2webmaster
    Senior Member
    Forum ExplorerTechnical AssociateSolutions Developer
    • Mar 2021
    • 101

    #1

    How to restart Passenger WSGI (Python) from command line ?

    Hello,

    I was able to install and run a Django web application on cPanel with the Python app support.
    Id like to know how can I restart the Passenger WSGI process from command line ?

    Use Case:

    I deploy the Python application code via CI and after each code upload the WSGI needs to be restarted. The current implementation only shows a "Restart" feature of the app within the cPanel Python interface.
  • vmarchuk
    Senior Member
    • Mar 2017
    • 142

    #2
    Hello,

    You can restart application with the following command:

    selectorctl --interpreter ruby --user usernaem --domain domain.com --restart-webapp testapp

    Comment

    Working...