mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-06 13:41:28 +00:00
23 lines
454 B
Python
23 lines
454 B
Python
import sys
|
|
import os
|
|
import pyuwsgi
|
|
|
|
orig_args = sys.argv
|
|
orig_executable = sys.executable
|
|
orig_args.insert(0, orig_executable)
|
|
|
|
uwsgi_args = []
|
|
|
|
uwsgi_args.append('--socket')
|
|
uwsgi_args.append(':3031')
|
|
#uwsgi_args.append('--master')
|
|
uwsgi_args.append('--module')
|
|
#uwsgi_args.append('welcome')
|
|
uwsgi_args.append('hello')
|
|
|
|
#pyuwsgi.run('welcome.ini')
|
|
pyuwsgi.run(uwsgi_args)
|
|
|
|
# if you are here uWSGI has been reloaded
|
|
os.execv(orig_executable, orig_args)
|