shocota / directus-extension-board-layout

GNU General Public License v3.0
81 stars 10 forks source link

Extension breaks Interfaces when using Docker #27

Open DedsonDev opened 1 year ago

DedsonDev commented 1 year ago

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 commented 1 year ago

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

shocota commented 1 year ago

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 commented 1 year ago

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

almereyda commented 10 months ago

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