Browse Source

Add gunicorn support.

tags/v1.0^2
Ben Kurtovic 10 years ago
parent
commit
fea757fd88
3 changed files with 12 additions and 1 deletions
  1. +10
    -0
      gunicorn.cfg
  2. +1
    -0
      run.sh
  3. +1
    -1
      setup.py

+ 10
- 0
gunicorn.cfg View File

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

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

+ 1
- 1
setup.py View File

@@ -5,7 +5,7 @@ setup(
version = "0.1.dev", version = "0.1.dev",
packages = find_packages(), packages = find_packages(),
install_requires = [ 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", "beautifulsoup4>=3.2.1", "oursql>=0.9.3.1", "mmh3>=2.3",
"python-dateutil>=2.2"], "python-dateutil>=2.2"],
author = "Benjamin Attal, Ben Kurtovic, Severyn Kozak", author = "Benjamin Attal, Ben Kurtovic, Severyn Kozak",


Loading…
Cancel
Save