Node App Crashed

please help me.
20 Replies
Percy
Percy3y ago
Please provide your project ID or reply with N/A. Thread will automatically be closed if no reply is received within 10 minutes. You can copy your project's id by pressing Ctrl/Cmd + K -> Copy Project ID.
root
root3y ago
You have node_modules in your .gitignore, right?
Saffaullah Shuvo
Saffaullah ShuvoOP3y ago
yes what should I do now brother?
root
root3y ago
How are you deploying your app? railway up or GitHub?
Saffaullah Shuvo
Saffaullah ShuvoOP3y ago
from Github repo
root
root3y ago
Is your code open source?
Saffaullah Shuvo
Saffaullah ShuvoOP3y ago
private repository
root
root3y ago
Try adding node_modules to .dockerignore too, and see if that helps. Edit: try using bcryptjs instead. Oh wait nevermind looks like that's slower
Saffaullah Shuvo
Saffaullah ShuvoOP3y ago
removing bcrypt and installing bcryptjs? please ans. in details
root
root3y ago
I'm honestly not sure; try just making sure that node_modules isn't in your git index, as that seems like it would be the only likely cause of this error.
Saffaullah Shuvo
Saffaullah ShuvoOP3y ago
thanks It is working..
root
root3y ago
Great! No problem.
Saffaullah Shuvo
Saffaullah ShuvoOP3y ago
should I remove .env also?
root
root3y ago
.env should be only on your local computer, not in Git. Although it's less of a problem for private repositories.
Saffaullah Shuvo
Saffaullah ShuvoOP3y ago
ok brother I need one more help I want to request to this railway app from my react app, so what is the base url, app is listened in 3000 port
root
root3y ago
You should be able to find it in the service settings, under "Domains".
root
root3y ago
The first one. Railway automatically proxies through port 443 to your port, and provides encryption for you.
Saffaullah Shuvo
Saffaullah ShuvoOP3y ago
Thanks brother for your time.
root
root3y ago
No problem! Since this is solved, somebody w/ perms might want to add that tag.
Want results from more Discord servers?
Add your server