How to restart Passenger WSGI (Python) from command line ?
Forum
  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: 101
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!
Alireza
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.

EU e-Privacy Directive

We use cookies to ensure you get the best experience using our website and services. Read more about it in our Privacy Policy. Please agree to the use of cookies to proceed. Alternatively, you may disable cookies in your browser at any time.

You have declined cookies. This decision can be reversed.

You have allowed cookies to be placed on your computer. This decision can be reversed.