Run PPM with config file

This commit is contained in:
TBK 2019-07-31 14:49:05 +02:00
parent 644c23577b
commit 557405814d
No known key found for this signature in database
GPG Key ID: 5FFB25718720C7D7
3 changed files with 23 additions and 2 deletions

View File

@ -17,4 +17,4 @@ echo "Getting PPM ready:"
trapIt () { "$@"& pid="$!"; trap 'kill -INT $pid' INT TERM; while kill -0 $pid > /dev/null 2>&1; do wait $pid; ec="$?"; done; exit $ec;}; trapIt () { "$@"& pid="$!"; trap 'kill -INT $pid' INT TERM; while kill -0 $pid > /dev/null 2>&1; do wait $pid; ec="$?"; done; exit $ec;};
echo "Starting PPM:" echo "Starting PPM:"
trapIt su-exec www-data:www-data /ppm/vendor/bin/ppm start --ansi --port=8080 --socket-path=/ppm/run --pidfile=/ppm/ppm.pid --bootstrap=laravel --static-directory=public/ --app-env=prod trapIt su-exec www-data:www-data /ppm/vendor/bin/ppm start --ansi --no-interaction --config=ppm.json

20
app/ppm.json Normal file
View File

@ -0,0 +1,20 @@
{
"bridge": "HttpKernel",
"host": "127.0.0.1",
"port": 8080,
"workers": 8,
"app-env": "prod",
"debug": 0,
"logging": 1,
"static-directory": "public\/",
"bootstrap": "laravel",
"max-requests": 1000,
"max-execution-time": 30,
"memory-limit": -1,
"ttl": 0,
"populate-server-var": 1,
"socket-path": "\/ppm\/run\/",
"pidfile": "\/ppm\/ppm.pid",
"reload-timeout": 30,
"cgi-path": "\/usr\/bin\/php-cgi7"
}

View File

@ -33,7 +33,8 @@ services:
- cache - cache
volumes: volumes:
- .env:/app/.env:rw - .env:/app/.env:rw
- ./app/php.ini:/etc/php7/php.ini - ./app/ppm.json:/app/ppm.json:ro
- ./app/php.ini:/etc/php7/php.ini:ro
- ./app/nginx.conf:/etc/nginx/nginx.conf:ro - ./app/nginx.conf:/etc/nginx/nginx.conf:ro
- ./app/default.conf:/etc/nginx/sites-enabled/default:ro - ./app/default.conf:/etc/nginx/sites-enabled/default:ro
- uploads:/app/public/uploads:rw - uploads:/app/public/uploads:rw