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

Extension breaks Interfaces when using Docker #27

Open
DedsonDev opened this issue Feb 20, 2023 · 4 comments
Open

Extension breaks Interfaces when using Docker #27

DedsonDev opened this issue Feb 20, 2023 · 4 comments

Comments

@DedsonDev
Copy link

Hello, first off thank you for creating this extension it's very much needed in our situation.
I'm working with directus in a docker container and have added the released index.js (did not build locally) to /extensions/interfaces/directus-extension-board-layout/ and reloaded the container.
The 'Board' option is not showing up in Layout Options and when you click a field, the Interfaces tab is completely empty (screenshot below).

image

@DedsonDev
Copy link
Author

Will try to build locally tomorrow and see if that changes things.

@DedsonDev DedsonDev changed the title Extension breaks Interfaces Extension breaks Interfaces when using Docker Feb 20, 2023
@shocota
Copy link
Owner

shocota commented Feb 23, 2023

Hello,
You must place the index.js file inside the layouts directory.
/extensions/layouts/directus-extension-board-layout/

Or run the following command on the project root folder may work well.
I've never tried but Directus (parhaps) supports this install style.
npm install directus-extension-board-layout

@staminna
Copy link

staminna commented Feb 25, 2023

It worked for me (with docker, you must mount the extensions outside the container). 1st Option

@almereyda
Copy link

These steps worked to persist the plugin across container restarts:

docker compose exec directus -- mkdir -p /directus/extensions/layouts/board
docker compose exec directus -- npm install directus-extension-board-layout
docker compose exec directus -- cp /directus/node_modules/directus-extension-board-layout/dist/index.js /directus/extensions/layouts/board/
docker compose restart directus

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

4 participants