Skip to content

Commit 106d9b9

Browse files
committed
Added startup script and supervisor config file
1 parent 39f389f commit 106d9b9

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

start.bash

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
sed -i "s/{queue}/$QUEUE/" /etc/supervisor/supervisord.conf
4+
sed -i "s/{tries}/$TRIES/" /etc/supervisor/supervisord.conf
5+
6+
/usr/bin/supervisord -n

supervisord.conf

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[supervisord]
2+
nodaemon=true
3+
4+
[program:artisan]
5+
command=/usr/bin/php /app/artisan queue:work --queue={queue} --env=production --tries={tries} --daemon
6+
autostart=true
7+
autorestart=true
8+
stderr_logfile=/dev/stdout
9+
stdout_logfile=/dev/stdout
10+
stdout_logfile_maxbytes=0

0 commit comments

Comments
 (0)