Hi Adolfo, thanks for your reply. Perhaps we need to break this out into a separate topic, something like “Tutor [Palm]: How to bind-mount a local MFE folder”
I have tried a few different approaches to get this working successfully, and have had no luck… yet.
tutor config save --append MOUNTS=/path/to/my/local/mfe/profile
tutor dev launch
and also
tutor mounts add /path/to/my/local/mfe/profile
tutor dev launch
In both instances, I see my config.yml has the following:
Hi @arbrandes thanks for your quick response. I’m running Tutor 16.0.2.
I figured out why it wasn’t working for me - when I created the MFE forks for my org, I changed the name of the fork to something other than frontend-app-profile, etc. If the name doesn’t exactly match the upstream repo letter-for-letter, word-for-word, the bind-mount simply won’t work.
Also, because the documentation for frontend-app-profile says devstack needs to be started first, I assumed the same should be true for tutor. Instead, one has to start the local MFE first with npm run start and once it’s running, follow up with tutor dev launch.
I think it would be good to update the documentation for the tutor MFE plugin, as well as each individual MFE, to include more specific details about what missteps to avoid, and how to get everything running. To that end, I’ll work on a series of pull requests to help that along. I’ll follow up here once they’re ready for review.
That’s correct, and as you mention below, likely warrants an update to the docs if it’s not clear enough.
As far as I know, tutor-mfe won’t actually use the npm run started node that’s running outside the container, but I imagine this works because as part of npm run start the MFE gets re-built. In any case, what I’m trying to say is that npm run start shouldn’t be necessary.