fix provisioning (including proxy https)
This commit is contained in:
@@ -27,6 +27,12 @@ if ( ! grep -q "^APP_KEY=" ".env" || grep -q "^APP_KEY=$" ".env"); then
|
|||||||
/usr/local/bin/php artisan key:generate --force
|
/usr/local/bin/php artisan key:generate --force
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ ! -L "public/storage" ]; then
|
||||||
|
echo " > Creating symbolic link for app public storage..."
|
||||||
|
|
||||||
|
/usr/local/bin/php artisan storage:link
|
||||||
|
fi
|
||||||
|
|
||||||
echo "====================== Installing NPM dependencies and building frontend... ====================== "
|
echo "====================== Installing NPM dependencies and building frontend... ====================== "
|
||||||
/usr/bin/npm install
|
/usr/bin/npm install
|
||||||
/usr/bin/npm run build
|
/usr/bin/npm run build
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ server {
|
|||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.php?$query_string;
|
try_files $uri $uri/ /index.php?$query_string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
location ~ \.php$ {
|
location ~ \.php$ {
|
||||||
include fastcgi_params;
|
include fastcgi_params;
|
||||||
|
|||||||
Reference in New Issue
Block a user