Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add uWSGI support #8

Open
cayaraa opened this issue Mar 3, 2017 · 1 comment
Open

add uWSGI support #8

cayaraa opened this issue Mar 3, 2017 · 1 comment

Comments

@cayaraa
Copy link

cayaraa commented Mar 3, 2017

With the following added to server.yp:

9a10
> import bottle
335a337,339
> # Run bottle in application mode. Required in order to get the application working with uWSGI!
> else:
>     app = application = bottle.default_app()

and a uwsgi ini config file simpler to this:
$ cat /etc/uwsgi.d/web-asset.ini

[uwsgi]
socket = 127.0.0.1:8080
protocol = http
plugins = python
chdir = /opt/web-asset-server/
wsgi-file = server.py
processes = 4
threads = 2
logto = /var/log/specify_web_asset.log

The bottle app code was taken from:
https://community.runabove.com/kb/en/development/how-to-run-bottle-uwsgi-nginx.html

@benanhalt
Copy link
Contributor

Thanks for figuring this out. I will add it to the codebase when I have a chance.

delarocamcas referenced this issue in calacademy-research/cas-web-asset-server Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants