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

directus apply template doesn't work #79

Open
aldoprogra opened this issue Apr 2, 2024 · 3 comments
Open

directus apply template doesn't work #79

aldoprogra opened this issue Apr 2, 2024 · 3 comments

Comments

@aldoprogra
Copy link

On local works, but now that I have the postgres db on railway, not only is really slow the loading off collections, but eventually will not complete successfully. Tables are correctly created, but seems there is no content inside.

End with this error:

Applying template - AgencyOS to http://0.0.0.0:8055
Loading 76 collections and 700 fields.... !
TypeError: Cannot read properties of undefined (reading 'status')

@bryantgillespie
Copy link
Contributor

Are you trying to load into a local instance? Or one hosted on Railway?
Because you mentioned Railway but the error you included shows you are loading into http://0.0.0.0:8055.

What does your config look like?

@aldoprogra
Copy link
Author

aldoprogra commented Apr 2, 2024

yes it is a local instance. General speaking I am having troubles deploying the instance, if I use the template works but in this way I have no control over the env. So my strategy is to bootstrap over a deployed db and then deploy my docker file of directus. Without the env file auth doesn't work, I suppose because of CORS false, but is a different issue.
attached my env. Do you think I should deploy the instance before apply the template?
env.txt

@aldoprogra
Copy link
Author

update, even with directus and postgres deployed still same error:
Loading 49 files... !
TypeError: Cannot read properties of undefined (reading
'status')

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

2 participants