How to restart Passenger WSGI (Python) from command line ?
Forum
For more information on the latest vulnerability (CVE-2018-12130, CVE-2018-12126, CVE-2018-12127, and CVE-2019-11091),
please refer to our blog post
  1. Forums
  2. CloudLinux and Control Panels
  3. CloudLinux and Other Control Panels
  1. Alireza
  2. Sunday, 10 September 2017
  3.  Subscribe via email
Hello,

I was able to install and run a Django web application on cPanel with the Python app support.
I'd 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.
Rate this post:
  1. 11.09.2017 09:09:28
  2. # 1
Vladimir Accepted Answer
Posts: 108
Joined: 04.07.2017
0
Votes
Undo
Hello,

You can restart application with the following command:

selectorctl --interpreter ruby --user usernaem --domain domain.com --restart-webapp testapp
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!
Guest
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below. Supports gif,jpg,png,zip,rar,pdf
• Insert • Remove Upload Files (Maximum File Size: 2 MB)
Captcha
To protect the site from bots and unauthorized scripts, we require that you enter the captcha codes below before posting your question.