9 months ago
Hello Railway Support Team,
I'm encountering an issue where my NestJS application works perfectly in my local environment, but when deployed to Railway using GitHub Actions, it fails due to missing i18n files. The specific error message is:
Error: ENOENT: no such file or directory, stat '/app/dist/configs/i18n/'
Steps to Reproduce:
The application is built using the NestJS framework and includes i18n files located in the configs/i18n/ directory.
When running locally, the application functions correctly with the i18n files.
Upon deploying the application to Railway using GitHub Actions, the deployment completes, but the application fails to start due to the missing i18n files.
What I Have Tried:
Verified the presence of i18n files in the local environment and ensured they are correctly referenced in the code.
Checked the build script and GitHub Actions configuration to ensure the i18n files are included during the build process.
Used relative paths to reference the i18n files.
Re-deployed the application multiple times, but the issue persists.
Expected Behavior:
The application should include the i18n files in the build output and work as expected when deployed to Railway.
Actual Behavior:
The application fails to start because the i18n files are missing from the /app/dist/configs/i18n/ directory after deployment.
Additional Information:
Deployment Method: GitHub Actions
Framework/Stack: NestJS
Railway Project ID: 312a7994-7bcf-44e7-bf75-7a426964a561
Could you please help me troubleshoot this issue and ensure the i18n files are properly included during the deployment process?
Thank you for your assistance!
Best regards,
ⓘ Deployment information is only viewable by project members and Railway employees.
1 Replies
9 months ago
Hello, How have you verified that the i18n files are being put into the correct folder when building on Railway?