build(backend): refactor uniworxdb targets
This commit is contained in:
parent
3b624b9a9f
commit
84134c3042
7
Makefile
7
Makefile
@ -7,9 +7,8 @@ export CONTAINER_RUN ?= $(CONTAINER_COMMAND) run -dit --network=host
|
||||
export IN_CONTAINER ?= false
|
||||
export IN_CI ?= false
|
||||
|
||||
# TODO: deprecated
|
||||
export WATCH
|
||||
export db ?= -cf
|
||||
export UNIWORXDB_OPTS ?= -cf
|
||||
|
||||
export CONTAINER_ID
|
||||
export FRADRIVE_SERVICE
|
||||
@ -205,10 +204,10 @@ serve-backend:
|
||||
|
||||
# HELP(db-cf-backend): clear and fill database. requires running postgres
|
||||
# TODO (db-m-$MIGRATION-backend): apply migration (see src/Model/Migration/Definition.hs for list of available migrations)
|
||||
--db-%-dev-backend: .stack
|
||||
--db-backend: .stack
|
||||
SERVER_SESSION_ACID_FALLBACK=${SERVER_SESSION_ACID_FALLBACK:-true} ; \
|
||||
AVSPASS=${AVSPASS:-nopasswordset} ; \
|
||||
stack exec uniworxdb -- -$*
|
||||
stack exec uniworxdb -- $(UNIWORXDB_OPTS)
|
||||
|
||||
.stack: stack.yaml stack.yaml.lock package.yaml
|
||||
.stack:
|
||||
|
||||
Reference in New Issue
Block a user