Add lumen detection to queue,schedule contianers
This commit is contained in:
parent
8cc6e595e3
commit
c05c67ec02
28
init
28
init
@ -114,11 +114,15 @@ elif [ "$role" = "queue" -a -e artisan ]; then
|
|||||||
exec /bin/bash
|
exec /bin/bash
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# We only check for non mount points, in case this container has the app inside
|
if [ -e .lumen ]; then
|
||||||
mp=$(mp ${php})
|
echo "* Lumen detected..."
|
||||||
if [ ${mp} -eq 1 ]; then
|
else
|
||||||
echo "* Caching configuration..."
|
# We only check for non mount points, in case this container has the app inside
|
||||||
su www-data -s /bin/sh -c "(php artisan config:cache && php artisan route:cache && php artisan view:cache)"
|
mp=$(mp ${php})
|
||||||
|
if [ ${mp} -eq 1 ]; then
|
||||||
|
echo "* Caching configuration..."
|
||||||
|
su www-data -s /bin/sh -c "(php artisan config:cache && php artisan route:cache && php artisan view:cache)"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "* Running the queue..."
|
echo "* Running the queue..."
|
||||||
@ -137,11 +141,15 @@ elif [ "$role" = "scheduler" -a -e artisan ]; then
|
|||||||
exec /bin/bash
|
exec /bin/bash
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# We only check for non mount points, in case this container has the app inside
|
if [ -e .lumen ]; then
|
||||||
mp=$(mp ${php})
|
echo "* Lumen detected..."
|
||||||
if [ ${mp} -eq 1 ]; then
|
else
|
||||||
echo "* Caching configuration..."
|
# We only check for non mount points, in case this container has the app inside
|
||||||
su www-data -s /bin/sh -c "(php artisan config:cache && php artisan route:cache && php artisan view:cache)"
|
mp=$(mp ${php})
|
||||||
|
if [ ${mp} -eq 1 ]; then
|
||||||
|
echo "* Caching configuration..."
|
||||||
|
su www-data -s /bin/sh -c "(php artisan config:cache && php artisan route:cache && php artisan view:cache)"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "* Running the scheduler..."
|
echo "* Running the scheduler..."
|
||||||
|
@ -2,9 +2,8 @@ server {
|
|||||||
listen 80 default_server;
|
listen 80 default_server;
|
||||||
listen [::]:80 default_server;
|
listen [::]:80 default_server;
|
||||||
|
|
||||||
access_log none;
|
access_log off;
|
||||||
client_max_body_size 10m;
|
client_max_body_size 10m;
|
||||||
error_log none;
|
|
||||||
fastcgi_buffers 16 16k;
|
fastcgi_buffers 16 16k;
|
||||||
fastcgi_buffer_size 16k;
|
fastcgi_buffer_size 16k;
|
||||||
index index.php index.html;
|
index index.php index.html;
|
||||||
|
Loading…
Reference in New Issue
Block a user