mirror of
https://github.com/imgfloat/server.git
synced 2026-02-04 19:29:26 +00:00
19 lines
443 B
Makefile
19 lines
443 B
Makefile
APP_NAME=imgfloat
|
|
|
|
.PHONY: run test package docker-build docker-run ssl
|
|
|
|
run:
|
|
test -f .env && . ./.env
|
|
mvn spring-boot:run
|
|
|
|
test:
|
|
mvn test
|
|
|
|
package:
|
|
mvn clean package
|
|
|
|
ssl:
|
|
mkdir -p local
|
|
keytool -genkeypair -alias $(APP_NAME) -keyalg RSA -keystore local/keystore.p12 -storetype PKCS12 -storepass changeit -keypass changeit -dname "CN=localhost" -validity 365
|
|
echo "Use SSL_ENABLED=true SSL_KEYSTORE_PATH=file:$$PWD/local/keystore.p12"
|