瀏覽代碼

add wsgi

master
Ben Kurtovic 8 年之前
父節點
當前提交
f557ae9950
共有 4 個檔案被更改,包括 13 行新增1 行删除
  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 查看文件

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

### Deploy

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

+ 2
- 0
calefaction/eve/esi.py 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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…
取消
儲存