Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
callidus
Machina Callida
Commits
32c97df5
Commit
32c97df5
authored
May 18, 2020
by
Konstantin Schulz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
database migrations (e.g. upgrades) now only happen in the corpus storage manager
parent
8bf2f3b2
Pipeline
#11592
passed with stages
in 2 minutes and 57 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
docker-compose.yml
docker-compose.yml
+2
-2
mc_backend/mcserver/app/__init__.py
mc_backend/mcserver/app/__init__.py
+1
-2
No files found.
docker-compose.yml
View file @
32c97df5
...
...
@@ -35,7 +35,7 @@ services:
stdin_open
:
true
tty
:
true
volumes
:
-
$PWD
/mc_frontend/www:/home/mc/mc_frontend/www
-
.
/mc_frontend/www:/home/mc/mc_frontend/www
mcserver
:
build
:
context
:
./mc_backend
...
...
@@ -58,7 +58,7 @@ services:
-
"
8100:80"
restart
:
always
volumes
:
-
$PWD
/mc_frontend/www:/usr/share/nginx/html
-
.
/mc_frontend/www:/usr/share/nginx/html
-
./mc_frontend/nginx.conf:/etc/nginx/nginx.conf
volumes
:
db-data
:
mc_backend/mcserver/app/__init__.py
View file @
32c97df5
...
...
@@ -67,6 +67,7 @@ def full_init(app: Flask, is_csm: bool) -> None:
from
mcserver.app.services
import
CustomCorpusService
if
is_csm
:
from
mcserver.app.services.databaseService
import
DatabaseService
DatabaseService
.
init_db_alembic
()
DatabaseService
.
init_db_update_info
()
DatabaseService
.
update_exercises
(
is_csm
=
is_csm
)
DatabaseService
.
init_db_corpus
()
...
...
@@ -90,8 +91,6 @@ def init_app_common(cfg: Type[Config] = Config, is_csm: bool = False) -> Flask:
db
.
init_app
(
app
)
migrate
.
init_app
(
app
,
db
)
db
.
create_all
()
from
mcserver.app.services.databaseService
import
DatabaseService
DatabaseService
.
init_db_alembic
()
from
mcserver.app.services.textService
import
TextService
TextService
.
init_proper_nouns_list
()
TextService
.
init_stop_words_latin
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment