Merge pull request #659 from pelican-dev/issue/629

Make sure the .env can be accessed by the webserver when running Docker
This commit is contained in:
Michael (Parker) Parker 2024-10-24 08:59:34 -04:00 committed by GitHub
commit 308601e6fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -28,6 +28,7 @@ fi
mkdir /pelican-data/database
ln -s /pelican-data/.env /var/www/html/
chown -h www-data:www-data /var/www/html/.env
ln -s /pelican-data/database/database.sqlite /var/www/html/database/
if ! grep -q "APP_KEY=" .env || grep -q "APP_KEY=$" .env; then