Skip to content

Commit 539d4d9

Browse files
committed
INit tables with fake data
1 parent 81b2f6d commit 539d4d9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

services/api-server/Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,21 @@ docker-compose.yml:
4646
run-devel: .env docker-compose.yml down ## runs app on host with pg fixture for development [for development]
4747
# Starting db (under $<)
4848
docker-compose up --detach
49+
# Creating db-tables: user=key, password=secret
50+
@$(MAKE) db-tables
4951
# start app (under $<)
5052
uvicorn simcore_service_api_server.__main__:the_app \
5153
--reload --reload-dir $(SRC_DIR) \
5254
--port=8000 --host=0.0.0.0
5355

5456
.PHONY: db-tables
55-
db-tables: .env-devel ## upgrades and create tables [for development]
57+
db-tables: .env ## upgrades and create tables [for development]
5658
# Upgrading and creating tables
5759
export $(shell grep -v '^#' $< | xargs -d '\n'); \
5860
python3 tests/utils/init-pg.py
5961

6062
.PHONY: db-migration
61-
db-migration: .env-devel ## runs discover and upgrade on running pg-db [for development]
63+
db-migration: .env ## runs discover and upgrade on running pg-db [for development]
6264
# Creating tables
6365
export $(shell grep -v '^#' $< | xargs -d '\n'); \
6466
sc-pg discover && sc-pg upgrade

0 commit comments

Comments
 (0)