mirror of
https://github.com/jkaninda/laravel-php-fpm.git
synced 2025-12-07 09:29:37 +01:00
Add Supervisord custom process number
This commit is contained in:
@@ -68,15 +68,19 @@ echo "Checking if storage directory exists"
|
|||||||
echo "Directory $STORAGE_DIR exist. Fixing permissions..."
|
echo "Directory $STORAGE_DIR exist. Fixing permissions..."
|
||||||
chown -R www-data:www-data $STORAGE_DIR
|
chown -R www-data:www-data $STORAGE_DIR
|
||||||
chmod -R 775 $STORAGE_DIR
|
chmod -R 775 $STORAGE_DIR
|
||||||
echo "${Green} Permissions fixed"
|
echo "${Green}Permissions fixed"
|
||||||
|
|
||||||
else
|
else
|
||||||
echo "${Red} Directory $STORAGE_DIR does not exist"
|
echo "${Red} Directory $STORAGE_DIR does not exist"
|
||||||
echo "Fixing permissions from $WORKDIR"
|
echo "Fixing permissions from $WORKDIR"
|
||||||
chown -R www-data:www-data $WORKDIR/storage
|
chown -R www-data:www-data $WORKDIR/storage
|
||||||
chmod -R 775 $WORKDIR/storage
|
chmod -R 775 $WORKDIR/storage
|
||||||
echo "${Green} Permissions fixed"
|
echo "${Green}Permissions fixed"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo "**********************************"
|
||||||
|
echo " Starting Supervisord... "
|
||||||
|
echo "***********************************"
|
||||||
supervisord -c /etc/supervisor/supervisord.conf
|
supervisord -c /etc/supervisor/supervisord.conf
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user