mirror of
https://github.com/imgfloat/server.git
synced 2026-02-04 19:29:26 +00:00
Housekeeping
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -4,3 +4,4 @@
|
|||||||
*.iml
|
*.iml
|
||||||
local/
|
local/
|
||||||
*.log
|
*.log
|
||||||
|
.env
|
||||||
|
|||||||
19
Makefile
19
Makefile
@@ -3,21 +3,16 @@ APP_NAME=imgfloat
|
|||||||
.PHONY: run test package docker-build docker-run ssl
|
.PHONY: run test package docker-build docker-run ssl
|
||||||
|
|
||||||
run:
|
run:
|
||||||
mvn spring-boot:run
|
test -f .env && . ./.env
|
||||||
|
mvn spring-boot:run
|
||||||
|
|
||||||
test:
|
test:
|
||||||
mvn test
|
mvn test
|
||||||
|
|
||||||
package:
|
package:
|
||||||
mvn clean package
|
mvn clean package
|
||||||
|
|
||||||
docker-build:
|
|
||||||
docker build -t $(APP_NAME):latest .
|
|
||||||
|
|
||||||
docker-run:
|
|
||||||
docker run --rm -p 8080:8080 -e TWITCH_CLIENT_ID=$${TWITCH_CLIENT_ID} -e TWITCH_CLIENT_SECRET=$${TWITCH_CLIENT_SECRET} $(APP_NAME):latest
|
|
||||||
|
|
||||||
ssl:
|
ssl:
|
||||||
mkdir -p local
|
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
|
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"
|
echo "Use SSL_ENABLED=true SSL_KEYSTORE_PATH=file:$$PWD/local/keystore.p12"
|
||||||
|
|||||||
Reference in New Issue
Block a user