platformsh / platformify

Get your project ready to be deployed in Platform.sh
MIT License
3 stars 9 forks source link

[Upsun] `project:init` should generate relationships with the new format #196

Closed lolautruche closed 9 months ago

lolautruche commented 10 months ago

Before

   relationships:
      postgresql: "postgresql:postgresql"

After

  relationships:
    database:
      service: postgresql
      endpoint: postgresql

We may also consider using the new shorthand syntax:

services: 
  pg_datatabase:
    type: postgresql:15

applications:
  app:
    type: 'php:8.2'
    relationships:
      # Defining relationships with null values,
      # using the services names as relationship names
      # 1st relationship below is an equivalent of:
      #pg_database:
      #  service: pg_database
      #  endpoint: postgresql
      pg_database: