Pārlūkot izejas kodu

add wsgi

master
Ben Kurtovic pirms 7 gadiem
vecāks
revīzija
f557ae9950
4 mainītis faili ar 13 papildinājumiem un 1 dzēšanām
  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 Parādīt failu

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

### Deploy

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

+ 2
- 0
calefaction/eve/esi.py Parādīt failu

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

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

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


+ 1
- 0
requirements.txt Parādīt failu

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

+ 8
- 0
uwsgi.ini Parādīt failu

@@ -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

Notiek ielāde…
Atcelt
Saglabāt