From 3d59f949cfd0dd1a87971789f9b34bad3cccfcea Mon Sep 17 00:00:00 2001 From: "Dominik V. Salonen" Date: Tue, 2 Feb 2016 10:10:45 +0100 Subject: [PATCH] Much better --- Hyozan/__init__.py | 0 {Hyozan => QuadFile}/db.py | 0 {Hyozan => QuadFile}/output.py | 0 README.md | 3 ++- run.py | 4 ++-- 5 files changed, 4 insertions(+), 3 deletions(-) delete mode 100644 Hyozan/__init__.py rename {Hyozan => QuadFile}/db.py (100%) rename {Hyozan => QuadFile}/output.py (100%) diff --git a/Hyozan/__init__.py b/Hyozan/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/Hyozan/db.py b/QuadFile/db.py similarity index 100% rename from Hyozan/db.py rename to QuadFile/db.py diff --git a/Hyozan/output.py b/QuadFile/output.py similarity index 100% rename from Hyozan/output.py rename to QuadFile/output.py diff --git a/README.md b/README.md index 0dcd265..9d6f7a9 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,8 @@ A temporary (or permanent, depending on configuration) file sharing service writ * Clone the repo somewhere * Do ``cp conf.py.sample conf.py`` * Edit ``conf.py`` so that the information is correct -* If possible, make it listen on ``127.0.0.1`` and then use something like nginx as a reverse proxy. For security purposes +* `sqlite3 files.db < schema.sql` +* If possible, make it listen on ``127.0.0.1`` and then use something like nginx as a reverse proxy. For security purposes. Using gunicorn and the WSGI entry point is even better if you know how to do that. * ``chmod +x run.py`` and then ``./run.py`` * ??? * PROFIT (Hopefully) \ No newline at end of file diff --git a/run.py b/run.py index 7fb5917..379e5db 100755 --- a/run.py +++ b/run.py @@ -13,8 +13,8 @@ from random import randint from conf import config # Import Hyozan stuff -from Hyozan import db -from Hyozan.output import print_log, time_to_string +from QuadFile import db +from QuadFile.output import print_log, time_to_string app = Flask(__name__)