Skip to content

Commit

Permalink
fixed supervisor
Browse files Browse the repository at this point in the history
  • Loading branch information
emtudo committed Aug 26, 2020
1 parent c9c71bc commit 42c7bf2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions base-php/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ cp /home/bashrc /home/app/.bashrc
# Set PHP memory limit value.
sudo sed -i "/memory_limit = .*/c\memory_limit = $PHP_MEMORY_LIMIT" /etc/php7/php.ini

sudo ln -s /usr/lib/php7/modules/intl.so /usr/lib/php7/modules/intl.so.so

# OPCache extreme mode.
if [[ $OPCACHE_MODE == "extreme" ]]; then
# enable extreme caching for OPCache.
Expand Down Expand Up @@ -64,9 +66,9 @@ if [[ $SUPERVISOR == true ]]; then
(echo '* * * * * /usr/bin/php7 /var/www/app/artisan schedule:run') | crontab -
/usr/sbin/crond
if [[ $NGINX_ENABLED == false ]]; then
/usr/bin/supervisord -n -c /etc/supervisord.conf
/usr/bin/supervisord -c /etc/supervisord.conf
fi
/usr/bin/supervisord -c /etc/supervisord.conf
/usr/bin/supervisord -n -c /etc/supervisord.conf
fi

if [[ $NGINX_ENABLED == true ]]; then
Expand Down

0 comments on commit 42c7bf2

Please sign in to comment.