summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/django.ini25
-rw-r--r--config/flickrToken1
-rw-r--r--config/requirements.txt1
-rw-r--r--config/wsgi.py2
4 files changed, 15 insertions, 14 deletions
diff --git a/config/django.ini b/config/django.ini
index f1e961e..bbb8413 100644
--- a/config/django.ini
+++ b/config/django.ini
@@ -1,30 +1,31 @@
# django.ini file
[uwsgi]
+plugin = python
# maximum number of processes
-processes = 4
+processes = 4
max-requests = 5000
enable-threads = true
# the socket (use the full path to be safe)
-uid = www-data
-gid = www-data
+uid = http
+gid = http
-socket = /tmp/uwsgi.sock
+socket = /run/uwsgi/uwsgi.sock
chmod-socket = 664
-chown-socket = www-data:www-data
+chown-socket = http:http
# the base directory
-chdir = /home/lxf/apps/luxagraf
+chdir = /home/lxf/apps/luxagraf
# django's wsgi file
-module =config.wsgi
+module = config.wsgi
# the virtualenv
-home = /home/lxf/apps/luxagraf/venv
+home = /home/lxf/apps/luxagraf/venv
-buffer-size =65535
+buffer-size =65535
#plugin=python
-limit-as = 2048
+limit-as = 1024
limit-post = 0
# clear environment on exit
-vacuum = true
-
+vacuum = true
+logto = /var/log/uwsgi/test.log
diff --git a/config/flickrToken b/config/flickrToken
new file mode 100644
index 0000000..d45b957
--- /dev/null
+++ b/config/flickrToken
@@ -0,0 +1 @@
+72157670853688516-e8c163eaf0d86af6 \ No newline at end of file
diff --git a/config/requirements.txt b/config/requirements.txt
index b56342e..6e6bed2 100644
--- a/config/requirements.txt
+++ b/config/requirements.txt
@@ -30,7 +30,6 @@ pickleshare==0.5
Pillow==3.1.1
psycopg2==2.6.1
ptyprocess==0.5
-PyExifTool==0.1
Pygments==2.0.2
python-resize-image==1.1.3
requests==2.7.0
diff --git a/config/wsgi.py b/config/wsgi.py
index 8db4170..cc7e144 100644
--- a/config/wsgi.py
+++ b/config/wsgi.py
@@ -15,7 +15,7 @@ os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings")
sys.stdout = sys.stderr
SERVER_ROOT = abspath(dirname(dirname(__file__)))+'/'
# Tell wsgi to add the Python site-packages to it's path.
-site.addsitedir(SERVER_ROOT+'venv/lib/python3.4/site-packages')
+site.addsitedir(SERVER_ROOT+'venv/lib/python3.6/site-packages')
sys.path = [SERVER_ROOT,] + sys.path
sys.path.insert(0, os.path.join(SERVER_ROOT, "app"))
sys.path.insert(0, os.path.join(SERVER_ROOT, "app/lib"))