a year 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!
0 Replies
a year ago
<@229706675936821249> - what would be the best way to do this?
a year 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
a year ago
add the extension to your package.json and place the files on the extensions folder at the root of your project
a year ago
then deploy that
a year ago
add that dockerfile to a gh repo, remove the image from your railway service, then add the repo to the service instead
a year ago
nope, railway does not support docker-compose
a year ago
railway will use your Dockerfile that you have shown
I have replaced the source of my Directus Service with my repo but nothing changed, it is still using the directus image from Dockerhub
a year ago
screenshot of the source settings please
a year ago
interesting, did you hit the deploy button?
a year ago
multiple times?
a year ago
the 3 dot menu's redeploy button is not what im talking about
a year ago
you would have been shown this
a year ago
you are right, it doesnt auto deploy the repo after you change it
a year ago
thats not ideal