root@instance-1:~# cat /root/unit_json/start.json { "listeners": { "*:8300": { "application": "blogs" }, "*:8301": { "application": "cart" } }, "applications": { "blogs": { "type": "php",by avpdnepr - Nginx Mailing List - English
root@instance-1:~# cat /var/www/app/index.py import sys def application(environ, start_response): body = sys.version.encode("utf-8") status = "200 OK" headers = [('Content-type','text/plain')] start_response(status, headers) return body root@instance-1:~# curl -X PUT -d @/root/unit_json/start.json --unix-socket /var/run/control.unit.sock http:/by avpdnepr - Nginx Mailing List - English
root@instance-1:~# ls -l /var/www/app total 0 root@instance-1:~#by avpdnepr - Nginx Mailing List - English
{ "listeners": { "*:8300": { "application": "blogs" }, "*:8301": { "application": "cart" } }, "applications": { "blogs": { "type": "php", "processes": 20,by avpdnepr - Nginx Mailing List - English
Valentin V. Bartenev Wrote: ------------------------------------------------------- > On Tuesday 13 March 2018 11:46:48 avpdnepr wrote: > > 2018/03/13 12:10:37 2220#2220 "example_python" application > started > > 2018/03/13 12:10:37 2220#2220 Python failed to import module > "wsgi" > > 2018/03/13 12:10:37 1625#1625 process 2220 exited with cby avpdnepr - Nginx Mailing List - English
2018/03/13 12:10:37 2220#2220 "example_python" application started 2018/03/13 12:10:37 2220#2220 Python failed to import module "wsgi" 2018/03/13 12:10:37 1625#1625 process 2220 exited with code 1 2018/03/13 12:10:37 1632#1632 failed to start application "example_python"by avpdnepr - Nginx Mailing List - English