mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-30 00:28:00 +01:00
ff57ce54dd
- !! 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)
20 lines
299 B
Bash
Executable file
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
|