Commit b74d8db0ba05d933eaaad5cddeca62be907d93c3
1 parent
6b3d00b3
Exists in
devel
Adiciona o diretório '/var/www como static_folder no servidor de tradução.
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/TranslationServer.py
... | ... | @@ -9,7 +9,7 @@ import os, argparse |
9 | 9 | RUN_MODE=None |
10 | 10 | BUNDLES_PATH=None |
11 | 11 | conn=None |
12 | -app=Flask(__name__) | |
12 | +app=Flask(__name__, static_url_path="", static_folder="/var/www/") | |
13 | 13 | |
14 | 14 | def check_run_mode(func): |
15 | 15 | @wraps(func) |
... | ... | @@ -47,7 +47,7 @@ def init_mode(args): |
47 | 47 | print "# Server started in dictionary mode. Requests will be accepted for translation of texts and download bundles.\n# Endpoints '/translate' and '/sign' are available." |
48 | 48 | elif RUN_MODE == "full": |
49 | 49 | full_mode() |
50 | - 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." | |
50 | + 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." | |
51 | 51 | elif RUN_MODE == "translate": |
52 | 52 | print "# Server started in translation mode.\n# Only endpoint '/translate' available." |
53 | 53 | ... | ... |