Pārlūkot izejas kodu

Add gunicorn support.

tags/v1.0^2
Ben Kurtovic pirms 10 gadiem
vecāks
revīzija
fea757fd88
3 mainītis faili ar 12 papildinājumiem un 1 dzēšanām
  1. +10
    -0
      gunicorn.cfg
  2. +1
    -0
      run.sh
  3. +1
    -1
      setup.py

+ 10
- 0
gunicorn.cfg Parādīt failu

@@ -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 Parādīt failu

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

+ 1
- 1
setup.py Parādīt failu

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


Notiek ielāde…
Atcelt
Saglabāt