Skip to content

Commit

Permalink
fix settings
Browse files Browse the repository at this point in the history
  • Loading branch information
SkywalkerSpace committed Sep 2, 2020
1 parent 20cf426 commit 02b50ec
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import logging

import seatable_thumbnail.settings as settings
from seatable_thumbnail.validators import ThumbnailValidator
from seatable_thumbnail.thumbnail import Thumbnail
from seatable_thumbnail.http_request import HTTPRequest
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
uvicorn
pyjwt
pillow
future # seaf-server

# psd_tools
# moviepy
Empty file modified restart.sh
100644 → 100755
Empty file.
5 changes: 5 additions & 0 deletions seatable_thumbnail/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
import sys


# environment
# sys.path.append('/opt/seafile/lib/python3.6/site-packages')
# os.environ['CCNET_CONF_DIR'] = '/opt/seafile/conf'
# os.environ['SEAFILE_CONF_DIR'] = '/opt/seafile/conf'

#
ENABLE_VIDEO_THUMBNAIL = False
ENABLE_XMIND_THUMBNAIL = False
Expand Down
2 changes: 1 addition & 1 deletion supervisor.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ socket=tcp://localhost:8088

# Each process needs to have a separate socket file, so we use process_num
# Make sure to update "mysite.asgi" to match your project name
command=/usr/local/bin/uvicorn main:app --host 127.0.0.1 --port 8088 --workers 2 --access-log --proxy-headers
command=/usr/local/bin/uvicorn main:app --workers 2 --access-log --proxy-headers

# Automatically start and recover processes
autostart=true
Expand Down

0 comments on commit 02b50ec

Please sign in to comment.