Pony.fm/docker/entrypoint.sh
Adam Lavin ff57ce54dd
Biggus Upgradus
- !! NEW DOCKER FILES :D !!
- getid3 is now vendored from composer! :D
- fix elasticsearch for use with newer versions
- fix some migration issues by yeeting a migration that has had its day
- fix our asset pipeline (webpack / gulp)
2021-03-27 03:51:45 +00:00

20 lines
299 B
Bash
Executable file

#!/usr/bin/env sh
set -e
MODE=$1
case $MODE in
web)
php-fpm -D
nginx -g 'pid /tmp/nginx.pid; daemon off;'
;;
worker)
sudo -Esu www-data php artisan queue:listen --queue=default,notifications,indexing --sleep=5 --tries=3
;;
*)
echo "Unknown mode given"
;;
esac