diff options
| author | Elias Fleckenstein <eliasfleckenstein@web.de> | 2020-11-30 13:07:46 +0100 |
|---|---|---|
| committer | Elias Fleckenstein <eliasfleckenstein@web.de> | 2020-11-30 13:07:46 +0100 |
| commit | 0580d88122be5c502ed7fb009dcfbf9d5aecb10b (patch) | |
| tree | c1d9f67751a855d6109d032b54d0f87fc2dca552 /utils | |
| parent | 6eb4a803fdde0173ee6e47f092373fde687cd7f7 (diff) | |
| download | cheatdb-0580d88122be5c502ed7fb009dcfbf9d5aecb10b.tar.xz | |
Cheat DB
Diffstat (limited to 'utils')
| -rwxr-xr-x | utils/bash.sh | 2 | ||||
| -rwxr-xr-x | utils/create_migration.sh | 4 | ||||
| -rwxr-xr-x | utils/db.sh | 2 | ||||
| -rwxr-xr-x | utils/reload.sh | 2 | ||||
| -rwxr-xr-x | utils/run_migrations.sh | 2 | ||||
| -rwxr-xr-x | utils/tests.sh | 2 | ||||
| -rwxr-xr-x | utils/tests_cov.sh | 2 |
7 files changed, 8 insertions, 8 deletions
diff --git a/utils/bash.sh b/utils/bash.sh index e39e062..f941146 100755 --- a/utils/bash.sh +++ b/utils/bash.sh @@ -2,4 +2,4 @@ # Open SSH to app instance -docker exec -it contentdb_app_1 bash +docker exec -it cheatdb_app_1 bash diff --git a/utils/create_migration.sh b/utils/create_migration.sh index 4c73937..6eb73ff 100755 --- a/utils/create_migration.sh +++ b/utils/create_migration.sh @@ -2,8 +2,8 @@ # Create a database migration, and copy it back to the host. -docker exec contentdb_app_1 sh -c "FLASK_CONFIG=../config.cfg FLASK_APP=app/__init__.py flask db migrate" -docker exec -u root contentdb_app_1 sh -c "cp /home/cdb/migrations/versions/* /source/migrations/versions/" +docker exec cheatdb_app_1 sh -c "FLASK_CONFIG=../config.cfg FLASK_APP=app/__init__.py flask db migrate" +docker exec -u root cheatdb_app_1 sh -c "cp /home/cdb/migrations/versions/* /source/migrations/versions/" USER=$(whoami) sudo chown -R $USER:$USER migrations/versions diff --git a/utils/db.sh b/utils/db.sh index 1ad5cc8..fd52294 100755 --- a/utils/db.sh +++ b/utils/db.sh @@ -2,4 +2,4 @@ # Open SQL console for the database -docker exec -it contentdb_db_1 sh -c "psql contentdb contentdb" +docker exec -it cheatdb_db_1 sh -c "psql contentdb contentdb" diff --git a/utils/reload.sh b/utils/reload.sh index 5d2f2d1..3d7810e 100755 --- a/utils/reload.sh +++ b/utils/reload.sh @@ -2,4 +2,4 @@ # Hot/live reload - only works in debug mode -docker exec contentdb_app_1 sh -c "cp -r /source/* ." +docker exec cheatdb_app_1 sh -c "cp -r /source/* ." diff --git a/utils/run_migrations.sh b/utils/run_migrations.sh index 6618919..f06253c 100755 --- a/utils/run_migrations.sh +++ b/utils/run_migrations.sh @@ -3,4 +3,4 @@ # Run all pending migrations ./utils/reload.sh -docker exec contentdb_app_1 sh -c "FLASK_CONFIG=../config.cfg FLASK_APP=app/__init__.py flask db upgrade" +docker exec cheatdb_app_1 sh -c "FLASK_CONFIG=../config.cfg FLASK_APP=app/__init__.py flask db upgrade" diff --git a/utils/tests.sh b/utils/tests.sh index 2330a23..8ef2f06 100755 --- a/utils/tests.sh +++ b/utils/tests.sh @@ -1,3 +1,3 @@ #!/bin/sh -docker exec contentdb_app_1 sh -c "FLASK_CONFIG=../config.cfg FLASK_APP=app/__init__.py python -m pytest app/tests/ --disable-warnings" +docker exec cheatdb_app_1 sh -c "FLASK_CONFIG=../config.cfg FLASK_APP=app/__init__.py python -m pytest app/tests/ --disable-warnings" diff --git a/utils/tests_cov.sh b/utils/tests_cov.sh index 82df3d1..f998755 100755 --- a/utils/tests_cov.sh +++ b/utils/tests_cov.sh @@ -1,3 +1,3 @@ #!/bin/sh -docker exec contentdb_app_1 sh -c "FLASK_CONFIG=../config.cfg FLASK_APP=app/__init__.py python -m pytest app/tests/ --cov=app --disable-warnings" +docker exec cheatdb_app_1 sh -c "FLASK_CONFIG=../config.cfg FLASK_APP=app/__init__.py python -m pytest app/tests/ --cov=app --disable-warnings" |
