R
Railway12mo ago
Ibrahem

Weird issue with a specific route in my node.js application ONLY after deploying

I have a /get-translation route in my app. In development it works totally fine with no issues. After deploying to Railway that specific route fails to look up its corresponding views ejs file. I'm new to Railway, is there something I'm missing? All the other routes or redirects of those routes work just fine.
Solution:
can you make sure the files and folders have the correct case on github as opposed to your local project?
Jump to solution
16 Replies
Percy
Percy12mo ago
Project ID: bc58e304-a9cd-42c1-a6b9-2b614b792145
Ibrahem
IbrahemOP12mo ago
project ID: bc58e304-a9cd-42c1-a6b9-2b614b792145
Fragly
Fragly12mo ago
Any errors in the console when you go to the domain? if possible, could you send the domain?
Ibrahem
IbrahemOP12mo ago
Failed to lookup view "../views/translator/allTranslations.ejs" in views directory "/app/views" now this's weird because my structure doesnt have an "app" folder
Brody
Brody12mo ago
nixpacks puts your project into an /app folder
Ibrahem
IbrahemOP12mo ago
ahh i see
Brody
Brody12mo ago
but that shouldn't matter, you are using relative paths
Solution
Brody
Brody12mo ago
can you make sure the files and folders have the correct case on github as opposed to your local project?
Ibrahem
IbrahemOP12mo ago
let me check
Brody
Brody12mo ago
for some reason github does not track file casing changes by default
Ibrahem
IbrahemOP12mo ago
oh i think you're right why doesnt github track that?
Brody
Brody12mo ago
no clue tbh but you can change it git config core.ignorecase false
Ibrahem
IbrahemOP12mo ago
will definitely do that thanks a lot i appreciate it :)
Brody
Brody12mo ago
no problem, let me know if that solves it!
Ibrahem
IbrahemOP12mo ago
will do! trying it right now it works! i thought the days of errors caused by mispellings were behind me apparently not
Brody
Brody12mo ago
haha now it's errors caused by case sensitivity but glad this is solved
Want results from more Discord servers?
Add your server