Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PLATFORM_RELATIONSHIPS not available after upgrading to 0.5.0 #54

Closed
gilzow opened this issue Nov 8, 2022 · 3 comments
Closed

PLATFORM_RELATIONSHIPS not available after upgrading to 0.5.0 #54

gilzow opened this issue Nov 8, 2022 · 3 comments

Comments

@gilzow
Copy link
Collaborator

gilzow commented Nov 8, 2022

This might be related to #53 , but the environmental variable PLATFORM_RELATIONSHIPS is not present in my ddev application container after upgrading to ddev-platformsh 0.5.0 and performing a ddev restart

gilzow@batcon-ddev-test-4-web:/var/www/html$ printenv | grep RELATIONSHIPS
gilzow@batcon-ddev-test-4-web:/var/www/html$ 

Other PLATFORM_* environmental variables (e.g. PLATFORM_ROUTES, PLATFORM_MOUNTS, PLATFORM_DIR, etc.) are present.

@gilzow
Copy link
Collaborator Author

gilzow commented Nov 8, 2022

I just tried installing ddev-platformsh on a project that has never been configured to use ddev.
ddev start
tells me that there isn't a project and instructs me to run ddev config
I run ddev config and answer the questions.
Once it is complete, I run ddev get platformsh/ddev-platformsh and answer the questions.
I then run ddev restart per the instructions at the end of installing ddev-platformsh
After restarting, I do ddev pull platform to import the database.
I then do ddev ssh and once inside, do printenv | grep RELATION and again, no platform relationships.

@gilzow
Copy link
Collaborator Author

gilzow commented Nov 8, 2022

❯ ddev version
 ITEM             VALUE                                   
 DDEV version     v1.21.3                                 
 architecture     amd64                                   
 db               drud/ddev-dbserver-mariadb-10.4:v1.21.3 
 dba              phpmyadmin:5                            
 ddev-ssh-agent   drud/ddev-ssh-agent:v1.21.3             
 docker           20.10.8                                 
 docker-compose   v2.10.2                                 
 docker-platform  docker-desktop                          
 mutagen          0.16.0                                  
 os               darwin                                  
 router           drud/ddev-router:v1.21.3                
 web              drud/ddev-webserver:v1.21.3  

@rfay
Copy link
Member

rfay commented Nov 8, 2022

I'll chase this, but it just seems to be something that doesn't work out right with wordpress-composer. Thanks so much for the careful testing and reporting!

(Note that in your test project all environment variables are missing. I assume that means there's an if/end clause that has the wrong setup)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants