Forever for Python






It is easy to use Python with forever.js:

forever start -c python manage.py runserver
 
To use it with virtualenv is a little bit more complicated, I did it using a bash script (call it python_virtualenv):

#!/bin/bash
# Script to run a Python file using the local virtualenv
source bin/activate
bin/python $@
 
Now use that script with forever:
forever start -c ./python_virtualenv python_script.py

Comentarios

Entradas más populares de este blog

Fix Audio Windows on MAC

Tkinter tkFileDialog module

Using real data types in VHDL