Railway up fails to find ts modules in cicd
I have a CI/CD pipeline where some pre-processing is done before calling
railway up
command to deploy the app.
The app is an API server running Deno. It uses a lot of http imports and I fetch all of them inside CI/CD so that when deployed to railway I won't get any surprises like "dynamic import failed, have a nice day". A script downloads all those modules and reexports them through ./services/index.ts
A bit of console-log debugging tells me that I have all the modules fetched successfully and Deno can access them no problem.
After that is done, railway up
is executed and I expect it to grab newly downloaded modules and do it's magic but instead I get error message saying "index.ts not found"
And it also works just fine on my PC. I suspect it may be a config issue and I should RTFMSolution:Jump to solution
without knowing anything about what youre saying, this may be applicable
https://github.com/railwayapp/cli/blob/master/src/commands/up.rs#L156-L160...
13 Replies
Project ID:
80e722d8-0636-4f4f-ab16-8787e72142ec
80e722d8-0636-4f4f-ab16-8787e72142ec
Solution
without knowing anything about what youre saying, this may be applicable
https://github.com/railwayapp/cli/blob/master/src/commands/up.rs#L156-L160
damn it might me gitignore indeed
can it be bypassed somehow?
I'm 90% sure it's gitignore
nope, can you bypass .gitignore for the git cli?
it makes so much sense
you mean in cicd?
i mean when you git push, is there an option to ignore the rules in .gitignore
I think I'll try moving project dir somewhere else inside gitlab runner where it does not match gitignore, as I'm not sure that ignoring it on push is what I want
sounds good π
just a personal question, do you know the entire cli codebase? cuz it was fast
I've read a good chunk of the cli's codebase
you know the documentation is good when you have to resort to reading the source code
thanks for the assistance! I can confidently say that it was gitignore to blame
no problem π