How to restart a Python application

22 de marzo, 2018 @ 14:53 — 0 comentariosDownload PDF

In this guide we explain two different methods to restart Python applications.

Restart from the Hosting Panel

1 - Access your Hosting Panel

Just follow instructions of How to access your Hosting Panel.

2 - Click on NodeJS Applications

Look for and click on Python Applications icon.


3 - Restart app

You will see a listing of all Python applications configured in the current hosting account. Just locate the one you whish to restart and click on its Reboot link.

Restart creating a restart.txt file

The second method to restart an application is usually more convenient, as it only requires to create or update a file named restart.txt that must be located in the tmp folder of you NodeJS application.

In other words: if your applications root folder is /home/username/python/myapp you must create or update the file /home/username/python/myapp/tmp/restart.txt

Just access your account using SSH and execute:

cd /home/username/python/myapp
touch tmp/restart.txt