Skip to content

Commit

Permalink
🚀 Update Platform.sh configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
jbelien committed Sep 10, 2024
1 parent bf45431 commit 4d3686d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ TRUSTED_PROXIES=127.0.0.1,REMOTE_ADDR
# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml
#
DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db"
# DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db"
# DATABASE_URL="mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=8.0.32&charset=utf8mb4"
# DATABASE_URL="mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=10.11.2-MariaDB&charset=utf8mb4"
# DATABASE_URL="postgresql://app:!ChangeMe!@127.0.0.1:5432/app?serverVersion=16&charset=utf8"
Expand Down
4 changes: 2 additions & 2 deletions .platform.app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: app
type: php:8.3

relationships:
postgresql:
database: "database:postgresql"

runtime:
extensions:
Expand All @@ -13,7 +13,7 @@ runtime:
- ctype
- iconv
- intl
- pdo
- pdo_pgsql
- sodium

variables:
Expand Down
2 changes: 1 addition & 1 deletion .platform/services.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# The name given to the PostgreSQL service (lowercase alphanumeric only).
postgresql:
database:
# The type of your service (postgresql), which uses the format
# 'type:version'. Be sure to consult the PostgreSQL documentation
# (https://docs.platform.sh/add-services/postgresql.html#supported-versions)
Expand Down

0 comments on commit 4d3686d

Please sign in to comment.