-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c141b83
commit 392cbd8
Showing
5 changed files
with
17 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
#!/usr/bin/env bash | ||
composer dump-env prod | ||
bin/console cache:clear | ||
bin/console cache:clear && chown www-data:www-data var/cache -R | ||
bin/console doctrine:database:create --if-not-exists -n | ||
bin/console doctrine:migrations:migrate -n --allow-no-migration | ||
supervisord -c /etc/supervisor/supervisord.conf && supervisorctl reread && supervisorctl update && supervisorctl start messenger-consume:* | ||
php-fpm | ||
nginx | ||
bin/console messenger:consume async --time-limit=3600 | ||
bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[program:messenger-consume] | ||
command=php /application/bin/console messenger:consume async --time-limit=3600 | ||
user=www-data | ||
numprocs=1 | ||
startsecs=0 | ||
autostart=true | ||
autorestart=true | ||
startretries=10 | ||
process_name=%(program_name)s_%(process_num)02d | ||
environment=MESSENGER_CONSUMER_NAME=%(program_name)s_%(process_num)02d |