core/server/Makefile

22 lines
517 B
Makefile
Raw Permalink Normal View History

2021-11-24 07:52:27 +00:00
#!make
# include .env
export $(shell sed 's/=.*//' .env)
.ONESHELL:
.PHONY: clean build upPostgres composeBuild runExample addTestUserAndAuth startTestPostgres
clean:
../gradlew clean
build:
../gradlew build distTar
startTestServer:
../gradlew run --args="test.config.json"
startTestPostgres:
sudo docker-compose up
addTestUserAndAuth:
2022-01-22 16:59:41 +00:00
sudo docker-compose exec test_postgres psql test -U test -c "INSERT INTO Users VALUES (-1, 'test', 'test', 'test');INSERT INTO UsersAuthentications VALUES ('test', -1);"