Gogs 6 jaren geleden
bovenliggende
commit
0fb8b4fa68
4 gewijzigde bestanden met toevoegingen van 4 en 3 verwijderingen
  1. 2 1
      deployment/gunicorn.conf
  2. 1 1
      deployment/test.ini
  3. 1 1
      views.py
  4. BIN
      views.pyc

+ 2 - 1
deployment/gunicorn.conf

@@ -3,6 +3,7 @@
 APP_NAME = "test"
 
 bind = "unix:/var/run/%s.sock" % APP_NAME
+#bind = '127.0.0.1:8000'
 
 workers = 1
 worker_class = "gevent"
@@ -11,7 +12,7 @@ timeout = 60
 
 daemon = False
 pidfile = "/var/run/%s.pid" % APP_NAME
-chdir = "/root/project/test/project"
+chdir = "/root/project/test/project/"
 
 errorlog = "/data/log/web/%s.log" % APP_NAME
 loglevel = "info"

+ 1 - 1
deployment/test.ini

@@ -1,6 +1,6 @@
 [program:test]
 environment = CONFIG_NAME="qcloud"
-directory = /root/project/test/
+directory = /root/project/test/project/
 command = /usr/bin/gunicorn -c deployment/gunicorn.conf views:app
 stdout_logfile = /data/log/web/test.sup.log
 redirect_stderr = true

+ 1 - 1
views.py

@@ -10,4 +10,4 @@ def index():
 
 
 if __name__ == "__main__":
-    app.run(port=3389, debug=True)
+    app.run()

BIN
views.pyc