Skip to content

Commit 1433de3

Browse files
committed
dont create an app key on startup
1 parent b8eaaf9 commit 1433de3

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

docker/deploy/etc/s6-overlay/scripts/laravel-automations

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,8 @@ fi
3939

4040
# Check for app key
4141
if [ ! ${APP_KEY} ]; then
42-
if grep -E "APP_KEY=[0-9A-Za-z:+\/=]{1,}" $WEBUSER_HOME/.env > /dev/null; then
43-
echo "✅ An application key exists."
44-
else
45-
echo "⏳ Generating an application key..."
46-
export APP_KEY=$(s6-setuidgid webuser php $WEBUSER_HOME/artisan key:generate --show)
47-
echo "⚠️ An application key was generated at start up, no environment variable was set."
48-
echo "👀 To set an application key that persists, read the docs: https://docs.speedtest-tracker.dev/"
49-
fi
50-
else
51-
echo "✅ An application key environment variable exists."
42+
echo "⚠️ An application key is missing!"
43+
echo "👀 To set an application key, read the docs: https://docs.speedtest-tracker.dev/"
5244
fi
5345

5446
echo ""

0 commit comments

Comments
 (0)