Open BorisKamp opened 5 days ago
Did you install the directus-extension-sync
inside Directus ?
Here is the installation instruction : https://www.npmjs.com/package/directus-extension-sync
Did you install the
directus-extension-sync
inside Directus ? Here is the installation instruction : https://www.npmjs.com/package/directus-extension-sync
Thankyou for your reply @EdouardDem !
Yes, I ran npm install directus-extension-sync
in the root folder, here is my package.json
:
{
"name": "directus-cebv-portal",
"type": "module",
"version": "1.0.0",
"description": "Please enter a description",
"scripts": {
"lint": "eslint .",
"lint:fix": "eslint . --fix"
},
"dependencies": {
"directus-extension-sync": "^3.0.2"
},
"devDependencies": {
"@antfu/eslint-config": "2.24.1",
"husky": "^9.1.4"
}
}
I even rebuild the docker container. In my http://localhost:8055/admin/settings/extensions I dont see the extension either. I have no clue what Im doing wrong here: https://tinyurl.com/26r5bybn
How do you build the Docker container ?
You should copy the folder node_modules/directus-extension-sync
to ./extensions
in the Docker image.'
More details here https://github.com/tractr/directus-sync/issues/63#issuecomment-2096657924
How do you build the Docker container ? You should copy the folder
node_modules/directus-extension-sync
to./extensions
in the Docker image.'More details here #63 (comment)
Thank you for the reply @EdouardDem , I added the following volume to my docker-compose.yml
:
services:
cache:
image: redis:6
directus:
build:
context: ./
env_file: .env
ports:
- 8055:8055
volumes:
...
- ./node_modules/directus-extension-sync:/directus/extensions/directus-extension-sync
depends_on:
- cache
and now it works
When I run
docker compose exec directus npx directus-sync pull --only-collections permissions,policies,presets,roles,settings
from I get the following output:What is going on here? I know it used to work a few weekes ago for me, now it does not.
I have
DIRECTUS_URL
andDIRECTUS_TOKEN
in my.env
file.