浏览代码

Add gunicorn support.

tags/v1.0^2
Ben Kurtovic 10 年前
父节点
当前提交
fea757fd88
共有 3 个文件被更改,包括 12 次插入1 次删除
  1. +10
    -0
      gunicorn.cfg
  2. +1
    -0
      run.sh
  3. +1
    -1
      setup.py

+ 10
- 0
gunicorn.cfg 查看文件

@@ -0,0 +1,10 @@
# Configuration file for Gunicorn
# http://docs.gunicorn.org/en/latest/configure.html

bind = ["0.0.0.0:5000"]
daemon = True
workers = 4

accesslog = "logs/access.log"
errorlog = "logs/error.log"
loglevel = "info"

+ 1
- 0
run.sh 查看文件

@@ -0,0 +1 @@
gunicorn -c gunicorn.cfg app:app

+ 1
- 1
setup.py 查看文件

@@ -5,7 +5,7 @@ setup(
version = "0.1.dev",
packages = find_packages(),
install_requires = [
"Flask>=0.10.1", "pygments>=1.6", "requests>=2.2.0",
"Flask>=0.10.1", "gunicorn>=18.0", "pygments>=1.6", "requests>=2.2.0",
"beautifulsoup4>=3.2.1", "oursql>=0.9.3.1", "mmh3>=2.3",
"python-dateutil>=2.2"],
author = "Benjamin Attal, Ben Kurtovic, Severyn Kozak",


正在加载...
取消
保存