Good day! There is a working bundle for my project debian + uwsgi + nginx + flask + python. But I want to use pypy instead of python, since everything works with him 3 times faster for my project. I use uwsgi-emperor, here is the configuration file /etc/uwsgi-emperor/vassals/myapp.ini
[uwsgi] socket = /srv/myapp/uwsgi.sock chmod-socket = 775 chdir = /srv/myapp/appdata master = true binary-path = /srv/myapp/bin/uwsgi virtualenv = /srv/myapp module = flaskapp:app uid = www-data gid = www-data processes = 1 threads = 1 # #plugins = /srv/uwsgi/pypy,logfile #plugins_dir = /srv/uwsgi/ #pypy-home = /srv/uwsgi/ #pypy-lib = /srv/uwsgi/pypy_plugin.so plugins = python3,logfile logger = file:/srv/myapp/uwsgi.log buffer-size = 32768 post-buffering = 8192 But the configuration file /etc/uwsgi-emperor/emperor.ini
[uwsgi] # try to autoload appropriate plugin if "unknown" option has been specified autoload = true # enable master process manager master = true # spawn 2 uWSGI emperor worker processes workers = 2 # automatically kill workers on master's death no-orphans = true # place timestamps into log log-date = true # user identifier of uWSGI processes uid = www-data # group identifier of uWSGI processes gid = www-data # vassals directory emperor = /etc/uwsgi-emperor/vassals I tried to specify
plugins = pypy but apparently not working at all. Pypy is installed and works fine by itself. Tell me where to look? Is it better to specify in the ini file as an example?
applicationshould be specified. Start with the helloworld wsgi app. - jfspypy-home = /srv/pypy3/bin/libpypy3-c.sopypy-wsgi-file = serv.wsgiBut the application never starts up. Please tell me what it means to collect uwsgi inside the pypy created by virtualenv? - AlexanderFomichevpip install uwsgienough (the main thing is that uwsgi is not compiled with libpython).pypy-homeoption should be a directory (eg,/srv/pypy) containing bin / libpypy-c.so, and not the file itself. - jfs