core/server/Makefile

22 lines
512 B
Makefile
Raw 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:
docker-compose exec test_postgres psql test -U test -c "INSERT INTO Users VALUES (-1, 'test', 'test', 'test');INSERT INTO UsersAuthentications VALUES ('test', -1);"