mirror of
https://github.com/jkaninda/laravel-php-fpm.git
synced 2026-11-16 01:07:12 +00:00
Add Supervisord custom process number
This commit is contained in:
1 parent
90387daeda
commit
f479188093
1 file changed
+6
-2
+6
-2
@@ -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