Comments (8)
@lolautruche so in
relationships:
database: "mysqldb:mysql"
cache: "memcached:memcached"
the right-hand side of mysqldb:mysql
or memcached:memcached
is meaningless right? So all we care about, for example, with the database
line here in .platform.app.yaml is the join value (mysqldb
, which joins to the services .yaml stanza) and the right-hand side mysql
is meaningless?
from ddev-platformsh.
Oh,
# The left-hand side is the name of the relationship as it will be exposed
# to the application in the PLATFORM_RELATIONSHIPS variable. The right-hand
# side is in the form `<service name>:<endpoint name>`.
But I guess I don't know what <endpoint name>
means, can you enlighten me?
from ddev-platformsh.
Oh, the problem in this issue is not this, I don't think.
It's that I didn't remember that mysql:10.2
actually means mariadb:10.2
.
from ddev-platformsh.
@rfay The doc states the following:
The endpoint_name is the exposed functionality of the service to use. For most services, the endpoint is the same as the service type. For some services (such as MariaDB and Solr), you can define additional explicit endpoints for multiple databases and cores in the service’s configuration.
So it's only relevant to a few services like MariaDB, which can define several endpoints (multiple databases).
from ddev-platformsh.
Ah, so "endpoint" means "name of database" then? So we probably need to not use the endpoint name often given here (in this example "mysql") and instead use (by default) the name of ddev's default database, "db", when creating PLATFORM_RELATIONSHIPS? Or of course, add logic which will create databases of the endpoint/database name provided. That's probably the most robust thing in the end. Perhaps a post-start hook could create the databases.
from ddev-platformsh.
It actually means more "name of the server".
from ddev-platformsh.
If it means "name of the server" then where would the name of the database be? Or is server name == db name in Platformsh-land?
from ddev-platformsh.
You would define this in the services.yaml
(see the configuration for MariaDB/MySQL), on at the relationship level. By default, the DB name is main
and referred as path
in the $PLATFORM_RELATIONSHIPS
JSON.
from ddev-platformsh.
Related Issues (20)
- shasum is also required and must be handled
- Support redis 7.0 + 6.2 HOT 3
- How to override platform.sh environment variables set in `.ddev/config.platformsh.yaml` ? HOT 5
- ddev get ddev/ddev-platformsh ends with Syntax Error (Ibexa) HOT 9
- Problem on MacOs with base64 option HOT 2
- Python-based app fails to start HOT 2
- Support `composer_version: 2.5.x` or warn if it is not supported HOT 1
- There are no commands defined in the "self" namespace. HOT 1
- upstream value in `PLATFORM_ROUTES` is incorrect HOT 2
- Move ddev-platformsh to drud org and make official HOT 3
- Consider `settings_management_disabled: true` for platform.sh projects
- Remove PLATFORM_MOUNTS and PLATFORM_DIR
- Environment variables must be set much earlier for php-fpm HOT 7
- Tests aren't valid if they don't get to content-checking point HOT 1
- config files and config mismatches HOT 1
- Support multi-app configuration (.platform.app.yaml isn't always in the root (and applications.yaml is a thing too)) HOT 10
- Homebrew base64 does not support `base64 -w` HOT 18
- interface conversion: interface {} is bool, not string HOT 6
- Magento2 doesn't work with add-on: "Cannot find the main route for Magento. Please add `id: magento_route` to your routes.yaml" HOT 6
- [docs] README should explain that `ddev get` is when config translation happens, and you need to repeat if changing Platform config
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ddev-platformsh.