mirror of
https://github.com/symfony/recipes.git
synced 2026-09-12 07:36:30 +03:00
Simplify recipe for platformsh
This commit is contained in:
@@ -1,62 +0,0 @@
|
||||
name: app
|
||||
|
||||
type: php:8.0
|
||||
|
||||
runtime:
|
||||
extensions:
|
||||
- apcu
|
||||
- mbstring
|
||||
- sodium
|
||||
- ctype
|
||||
- iconv
|
||||
- xsl
|
||||
- pdo_pgsql
|
||||
- blackfire
|
||||
|
||||
variables:
|
||||
php:
|
||||
opcache.preload: /app/config/preload.php
|
||||
|
||||
build:
|
||||
flavor: none
|
||||
|
||||
disk: 512
|
||||
|
||||
relationships:
|
||||
database: "database:postgresql"
|
||||
|
||||
web:
|
||||
locations:
|
||||
"/":
|
||||
root: "public"
|
||||
expires: 1h
|
||||
passthru: "/index.php"
|
||||
|
||||
mounts:
|
||||
"/var": { source: local, source_path: var }
|
||||
|
||||
hooks:
|
||||
build: |
|
||||
set -x -e
|
||||
|
||||
curl -fs https://get.symfony.com/cloud/configurator | (>&2 bash)
|
||||
|
||||
(>&2 symfony-build)
|
||||
|
||||
deploy: |
|
||||
set -x -e
|
||||
|
||||
(>&2 symfony-deploy)
|
||||
|
||||
crons:
|
||||
security-check:
|
||||
# Check that no security issues have been found for PHP packages deployed in production
|
||||
# See https://github.com/fabpot/local-php-security-checker
|
||||
spec: '50 23 * * *'
|
||||
cmd: if [ "$SYMFONY_BRANCH" = "master" ]; then croncape php-security-checker; fi
|
||||
|
||||
workers:
|
||||
messenger:
|
||||
commands:
|
||||
# Consume "async" messages (as configured in the routing section of config/packages/messenger.yaml)
|
||||
start: symfony console --time-limit=3600 --memory-limit=64M messenger:consume async
|
||||
@@ -1,2 +0,0 @@
|
||||
"https://{all}/": { type: upstream, upstream: "app:http" }
|
||||
"http://{all}/": { type: redirect, to: "https://{all}/" }
|
||||
@@ -1,3 +0,0 @@
|
||||
database:
|
||||
type: postgresql:13
|
||||
disk: 1024
|
||||
@@ -1,9 +1,6 @@
|
||||
{
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
".platform/": ".platform/",
|
||||
".platform.app.yaml": ".platform.app.yaml",
|
||||
"php.ini": "php.ini"
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
},
|
||||
"env": {
|
||||
"MESSENGER_TRANSPORT_DSN": "doctrine://default"
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
allow_url_include=off
|
||||
assert.active=off
|
||||
display_errors=off
|
||||
display_startup_errors=off
|
||||
max_execution_time=30
|
||||
session.use_strict_mode=On
|
||||
realpath_cache_ttl=3600
|
||||
zend.detect_unicode=Off
|
||||
Reference in New Issue
Block a user