last one
This commit is contained in:
@@ -2,11 +2,12 @@
|
|||||||
|
|
||||||
cd /var/www/app
|
cd /var/www/app
|
||||||
|
|
||||||
echo -e "\n====================== Validating environment... ====================== "
|
artisan_as_www_user() {
|
||||||
run_as_www_user() {
|
|
||||||
su - www-data -c "/usr/local/bin/php /var/www/app/artisan $1"
|
su - www-data -c "/usr/local/bin/php /var/www/app/artisan $1"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
echo -e "\n====================== Validating environment... ====================== "
|
||||||
|
|
||||||
if [[ -z "$APP_KEY" ]]; then
|
if [[ -z "$APP_KEY" ]]; then
|
||||||
echo " > Oops! The required APP_KEY configuration is missing in your .env file! "
|
echo " > Oops! The required APP_KEY configuration is missing in your .env file! "
|
||||||
echo " > Copy and paste the below key into your .env file and restart the container... "
|
echo " > Copy and paste the below key into your .env file and restart the container... "
|
||||||
@@ -29,12 +30,12 @@ fi
|
|||||||
if [ ! -L "public/storage" ]; then
|
if [ ! -L "public/storage" ]; then
|
||||||
echo " > Creating symbolic link for app public storage..."
|
echo " > Creating symbolic link for app public storage..."
|
||||||
|
|
||||||
run_as_www_user "storage:link"
|
artisan_as_www_user "storage:link"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e "\n====================== Running migrations... ====================== "
|
echo -e "\n====================== Running migrations... ====================== "
|
||||||
run_migrations() {
|
run_migrations() {
|
||||||
run_as_www_user "migrate --force"
|
artisan_as_www_user "migrate --force"
|
||||||
}
|
}
|
||||||
RETRIES=30
|
RETRIES=30
|
||||||
DELAY=5
|
DELAY=5
|
||||||
|
|||||||
@@ -1,2 +0,0 @@
|
|||||||
[mysqld]
|
|
||||||
cte_max_recursion_depth = 25000
|
|
||||||
Reference in New Issue
Block a user