View more context

 

taoceanz

This is the .env to work with the schema created by docker.

taoceanz

Only thing that I didn't understand the reason why is occasional necessity to exec into the web container and run a ./vendor/bin/sake dev/build for the first time the network and containers are created and as such, the init of the schema.

👍 (1)
taoceanz

I've got this persistent issue with base url. Viewing pages via admin in split mode, pages load correctly with base url set correctly, but when viewing any page out of admin, the base url gets set to Docker container id resulting in something like http://jkfdi4nfvjkdls:8080/. Any ideas on what could be going wrong?

stevie

@taoceanz one thing you can do is ensure that you are forcing the base url in configuration in your .env: SS_BASE_URL="http://myurl.localhost/"

stevie

otherwise I imagine whats happening is that the proxy or the actual server inside docker is reporting back its base as being the machine name and port its running on there

stevie

do you have an example of your docker configuration?

Slackbot

Hi there! Thank you for asking how to make a pasty! I'm Rainbow Unicorn Dash, here to help! To share code, you are best off making a GitHub Gist, login to GitHub with your account and go to https://gist.github.com/ to start. Otherwise you can create a snippet by clicking the big + next to where you've been typing!

taoceanz

Hey Stevie, I have ss env vars set passed through to php-fpm from nginx so SS_BASE_URL is set there, also have the alternative base url set in yaml config to the same url. I've tried putting the ss env in .env too, but none of it changes behavior.