mirror of
https://github.com/booklore-app/booklore.git
synced 2025-12-23 22:28:11 -05:00
Kobo Phase 1: Enable Book Transfer/Sync
This commit is contained in:
committed by
Aditya Chandel
parent
a092d629c9
commit
6e6861b329
18
start.sh
Normal file
18
start.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Set default and export so envsubst sees it
|
||||
: "${BOOKLORE_PORT:=6060}"
|
||||
export BOOKLORE_PORT
|
||||
|
||||
# Use envsubst safely
|
||||
TMP_CONF="/tmp/nginx.conf.tmp"
|
||||
envsubst '${BOOKLORE_PORT}' < /etc/nginx/nginx.conf > "$TMP_CONF"
|
||||
|
||||
# Move to final location
|
||||
mv "$TMP_CONF" /etc/nginx/nginx.conf
|
||||
|
||||
# Start nginx in background
|
||||
nginx -g 'daemon off;' &
|
||||
|
||||
# Start Spring Boot in foreground
|
||||
exec java -jar /app/app.jar
|
||||
Reference in New Issue
Block a user