How can I install Directus extension to my project?
Anonymous
TRIALOP

2 years ago

Hi! I'm using this template: https://railway.app/template/2fy758 and I would like to add an extension to my directus project. I have to use npm i directus-extension-sync in order to install it. How can I achieve this? Thank you so much!

34 Replies

Anonymous
TRIALOP

2 years ago

N/A


brody
EMPLOYEE

2 years ago

<@229706675936821249> - what would be the best way to do this?


medim
MODERATOR

2 years ago

Extensions are a bad spot for this template atm (next week Directus Leap Week may change this), unfortunately you will need to create your own dockerfile/repo with directus and the extensions you want


Anonymous
TRIALOP

2 years ago

I've already created it


Anonymous
TRIALOP

2 years ago

How I can use it?


medim
MODERATOR

2 years ago

add the extension to your package.json and place the files on the extensions folder at the root of your project


Anonymous
TRIALOP

2 years ago

oh no I mean I have the dockerfile


Anonymous
TRIALOP

2 years ago


Anonymous
TRIALOP

2 years ago

It is working on local


brody
EMPLOYEE

2 years ago

then deploy that


Anonymous
TRIALOP

2 years ago

Idk how to do it, I kind of new in docker and railway


brody
EMPLOYEE

2 years ago

add that dockerfile to a gh repo, remove the image from your railway service, then add the repo to the service instead


Anonymous
TRIALOP

2 years ago

Does it need the docker-compose file?


brody
EMPLOYEE

2 years ago

nope, railway does not support docker-compose


Anonymous
TRIALOP

2 years ago

Ok thank you, I'm gonna try


brody
EMPLOYEE

2 years ago

railway will use your Dockerfile that you have shown


Anonymous
TRIALOP

2 years ago

I have replaced the source of my Directus Service with my repo but nothing changed, it is still using the directus image from Dockerhub


brody
EMPLOYEE

2 years ago

screenshot of the source settings please


Anonymous
TRIALOP

2 years ago


Anonymous
TRIALOP

2 years ago


brody
EMPLOYEE

2 years ago

interesting, did you hit the deploy button?


Anonymous
TRIALOP

2 years ago

Yes


Anonymous
TRIALOP

2 years ago

Multiple times


brody
EMPLOYEE

2 years ago

multiple times?


Anonymous
TRIALOP

2 years ago

I have redeploy multiple times I mean ahah


brody
EMPLOYEE

2 years ago

the 3 dot menu's redeploy button is not what im talking about


Anonymous
TRIALOP

2 years ago

Oh it seems to work now that I have added a root directory


Anonymous
TRIALOP

2 years ago

Oh I don t know what you are talking about then


brody
EMPLOYEE

2 years ago

you would have been shown this


Anonymous
TRIALOP

2 years ago

Oh yes


Anonymous
TRIALOP

2 years ago

I did


brody
EMPLOYEE

2 years ago

you are right, it doesnt auto deploy the repo after you change it


brody
EMPLOYEE

2 years ago

thats not ideal


Anonymous
TRIALOP

2 years ago

Thank you so much it is working right now


Loading...