R
Railwayβ€’8mo ago
maddsua

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 RTFM
No description
No description
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...
Jump to solution
13 Replies
Percy
Percyβ€’8mo ago
Project ID: 80e722d8-0636-4f4f-ab16-8787e72142ec
maddsua
maddsuaβ€’8mo ago
80e722d8-0636-4f4f-ab16-8787e72142ec
Solution
Brody
Brodyβ€’8mo ago
without knowing anything about what youre saying, this may be applicable https://github.com/railwayapp/cli/blob/master/src/commands/up.rs#L156-L160
maddsua
maddsuaβ€’8mo ago
damn it might me gitignore indeed can it be bypassed somehow? I'm 90% sure it's gitignore
Brody
Brodyβ€’8mo ago
nope, can you bypass .gitignore for the git cli?
maddsua
maddsuaβ€’8mo ago
it makes so much sense you mean in cicd?
Brody
Brodyβ€’8mo ago
i mean when you git push, is there an option to ignore the rules in .gitignore
maddsua
maddsuaβ€’8mo ago
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
Brody
Brodyβ€’8mo ago
sounds good πŸ™‚
maddsua
maddsuaβ€’8mo ago
just a personal question, do you know the entire cli codebase? cuz it was fast
Brody
Brodyβ€’8mo ago
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
maddsua
maddsuaβ€’8mo ago
thanks for the assistance! I can confidently say that it was gitignore to blame
Brody
Brodyβ€’8mo ago
no problem πŸ™‚