From b74d8db0ba05d933eaaad5cddeca62be907d93c3 Mon Sep 17 00:00:00 2001 From: Erickson Silva Date: Fri, 13 May 2016 15:05:20 -0300 Subject: [PATCH] Adiciona o diretório '/var/www como static_folder no servidor de tradução. --- src/TranslationServer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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