Skip to content

Commit

Permalink
fix ci/cd
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Kopylov committed Feb 6, 2024
1 parent bb065f8 commit 190b3ca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
11 changes: 5 additions & 6 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,12 @@ services:
- DEVELOPER_CHAT_ID=${DEVELOPER_CHAT_ID}
volumes:
- sqlite_data:/database
# command: ["python", "-m", "sqlite3", "${SQLITE_DB_FILE_PATH}", "<", "database/init.sql"]
entrypoint: ["/bin/sh", "-c"]
command:
- sh
- -c
- python -m sqlite3 ${SQLITE_DB_FILE_PATH} < database/init.sql
- python -m src/__main__.py
restart: always
- |
python -m sqlite3 &{SQLITE_DB_FILE_PATH} < src/sql/init.sql &&
python src/__main__.py
# restart: always

sqlitebrowser:
image: linuxserver/sqlitebrowser
Expand Down
4 changes: 3 additions & 1 deletion database/init.sql → src/sql/init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,6 @@ CREATE TABLE IF NOT EXISTS records (
FOREIGN KEY (creator_id) REFERENCES players(id),
FOREIGN KEY (game_id) REFERENCES games(id),
FOREIGN KEY (playroom_id) REFERENCES playrooms(id)
);
);

.quit

0 comments on commit 190b3ca

Please sign in to comment.