Crashed api
emersonsantos98
HOBBYOP

2 years ago

My api doesn't work in production on railway, but the same branch works locally and has no errors

14 Replies

emersonsantos98
HOBBYOP

2 years ago

Logs

Attachments


2 years ago

Never use nodemon when running on Railway.

Make sure you have lodash installed.


emersonsantos98
HOBBYOP

2 years ago

What's the problem with nodemon?


emersonsantos98
HOBBYOP

2 years ago

I don't use this library (lodash)


2 years ago

nodemon is only to be used when developing locally.


emersonsantos98
HOBBYOP

2 years ago

Okay, I already made this change.


emersonsantos98
HOBBYOP

2 years ago

Now what is the need to use this "lodash" library in my project?


2 years ago

sequelize uses it.


emersonsantos98
HOBBYOP

2 years ago

Okay


emersonsantos98
HOBBYOP

2 years ago

Will I have to refactor all my methods using this library just for my api to run?


2 years ago

I don't recall saying anything like that.


emersonsantos98
HOBBYOP

2 years ago

Okay, friend


emersonsantos98
HOBBYOP

2 years ago

Is the installation alone enough to solve it?


emersonsantos98
HOBBYOP

2 years ago

New logs

Attachments


Loading...