mirror of
https://github.com/imgfloat/server.git
synced 2026-02-05 03:39:26 +00:00
Housekeeping
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -4,3 +4,4 @@
|
||||
*.iml
|
||||
local/
|
||||
*.log
|
||||
.env
|
||||
|
||||
7
Makefile
7
Makefile
@@ -3,6 +3,7 @@ APP_NAME=imgfloat
|
||||
.PHONY: run test package docker-build docker-run ssl
|
||||
|
||||
run:
|
||||
test -f .env && . ./.env
|
||||
mvn spring-boot:run
|
||||
|
||||
test:
|
||||
@@ -11,12 +12,6 @@ mvn test
|
||||
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:
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user