|
|
%!s(int64=11) %!d(string=hai) anos | |
|---|---|---|
| .. | ||
| conf | %!s(int64=11) %!d(string=hai) anos | |
| views | %!s(int64=11) %!d(string=hai) anos | |
| README.md | %!s(int64=11) %!d(string=hai) anos | |
| __init__.py | %!s(int64=11) %!d(string=hai) anos | |
| app.pl | %!s(int64=11) %!d(string=hai) anos | |
| bash_profile.sh | %!s(int64=11) %!d(string=hai) anos | |
| benchmark_config | %!s(int64=11) %!d(string=hai) anos | |
| install.sh | %!s(int64=11) %!d(string=hai) anos | |
| nginx.conf | %!s(int64=11) %!d(string=hai) anos | |
| setup.py | %!s(int64=11) %!d(string=hai) anos | |
| source_code | %!s(int64=11) %!d(string=hai) anos | |
Create a configuration file. Bare bones example of app.ini:
[uwsgi] http-socket = :8080 psgi = app.pl
Make sure you have installed the psgi plugin.
Deploy with uwsgi
uwsgi --http-modifier1 5 --plugin psgi --ini app.ini
Deploy via plackup
plackup -E production -s Starman --workers=5 -l /tmp/frameworks-benchmark.sock -a ./app.pl
If you want to front it with nginx, otherwise
plackup -E production -s Starman --port=8080 --workers=5 -a ./app.pl