Progress
This commit is contained in:
@@ -75,13 +75,6 @@ ENV APACHE_DOCUMENT_ROOT=/var/www/html/public
|
||||
RUN sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf && \
|
||||
sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
|
||||
|
||||
# Setup Crone
|
||||
RUN mkdir -p /var/log/cron && \
|
||||
echo "* * * * * www-data cd /var/www/html && /usr/local/bin/php artisan schedule:run >> /dev/null 2>&1" >> /etc/crontab && \
|
||||
echo "* * * * * www-data cd /var/www/html && /usr/local/bin/php artisan queue:work --queue=default,importstatistics --stop-when-empty >> /dev/null 2>&1" >> /etc/crontab && \
|
||||
echo "* * * * * www-data cd /var/www/html && /usr/local/bin/php artisan queue:work --queue=statistics --stop-when-empty >> /dev/null 2>&1" >> /etc/crontab && \
|
||||
echo "* * * * * www-data cd /var/www/html && /usr/local/bin/php artisan queue:work --queue=detections --stop-when-empty >> /dev/null 2>&1" >> /etc/crontab
|
||||
|
||||
# Install composer # bun
|
||||
ENV COMPOSER_ALLOW_SUPERUSER=1
|
||||
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
[program:laravel-scheduler]
|
||||
process_name=%(program_name)s_%(process_num)02d
|
||||
command=php /var/www/html/artisan artisan schedule:run
|
||||
autostart=true
|
||||
autorestart=true
|
||||
stopasgroup=true
|
||||
killasgroup=true
|
||||
numprocs=1
|
||||
redirect_stderr=true
|
||||
stdout_logfile=/var/www/html/storage/logs/worker.log
|
||||
stopwaitsecs=3600
|
||||
stdout_logfile_maxbytes=5MB
|
||||
Reference in New Issue
Block a user