Browse Source

add wsgi

master
Ben Kurtovic 7 years ago
parent
commit
f557ae9950
4 changed files with 13 additions and 1 deletions
  1. +2
    -1
      README.md
  2. +2
    -0
      calefaction/eve/esi.py
  3. +1
    -0
      requirements.txt
  4. +8
    -0
      uwsgi.ini

+ 2
- 1
README.md View File

@@ -29,4 +29,5 @@ Guide


### Deploy ### Deploy


...
uwsgi --ini uwsgi.ini
# proxy to 127.0.0.1:9001

+ 2
- 0
calefaction/eve/esi.py View File

@@ -68,6 +68,8 @@ class EVESwaggerInterface:


Return the JSON result, if any. Raise EVEAPIError for any errors. Return the JSON result, if any. Raise EVEAPIError for any errors.
""" """
... # cache requests

params = {"datasource": self._data_source} params = {"datasource": self._data_source}
headers = { headers = {
"Accept": "application/json", "Accept": "application/json",


+ 1
- 0
requirements.txt View File

@@ -2,3 +2,4 @@ Flask==0.11.1
Flask-Mako==0.4 Flask-Mako==0.4
PyYAML==3.12 PyYAML==3.12
requests==2.12.4 requests==2.12.4
uWSGI==2.0.14

+ 8
- 0
uwsgi.ini View File

@@ -0,0 +1,8 @@
[uwsgi]
socket = 127.0.0.1:9001
wsgi-file = app.py
callable = app
virtualenv = venv
processes = 1
threads = 4
stats = 127.0.0.1:9002

Loading…
Cancel
Save