diff --git a/src/TranslationServer.py b/src/TranslationServer.py index cf7b0af..8c5dc97 100644 --- a/src/TranslationServer.py +++ b/src/TranslationServer.py @@ -9,7 +9,7 @@ import os, argparse RUN_MODE=None BUNDLES_PATH=None conn=None -app=Flask(__name__) +app=Flask(__name__, static_url_path="", static_folder="/var/www/") def check_run_mode(func): @wraps(func) @@ -47,7 +47,7 @@ def init_mode(args): print "# Server started in dictionary mode. Requests will be accepted for translation of texts and download bundles.\n# Endpoints '/translate' and '/sign' are available." elif RUN_MODE == "full": full_mode() - print "# Server started in full mode. Requests will be accepted for translation of texts, download bundles and statistics display.\n# Endpoints '/translate', '/sign' and '/info' are available." + print "# Server started in full mode. Requests will be accepted for translation of texts, download bundles. All bundles requests will be stored in a database.\n# Endpoints '/translate', '/sign' and '/info' are available." elif RUN_MODE == "translate": print "# Server started in translation mode.\n# Only endpoint '/translate' available." -- libgit2 0.21.2