#Server responds in development but not in production

26 messages · Page 1 of 1 (latest)

fallow hemlock
#

title.

alpine idolBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

fallow hemlock
#

basically the server is not working

#

im getting errors status 500

jolly seal
#

go to deployment => log

fallow hemlock
#

ok

jolly seal
#

fix it

#

most likely an env var issue

fallow hemlock
#
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: 'app/api/storage/servers.json'
}```
I need to redo the paths?
#

what should I keep the paths as?

jolly seal
#

since it's json already i'd just import it

fallow hemlock
#

I need to write too

jolly seal
#

import data from "./path/to/data.json"

jolly seal
fallow hemlock
#

any other hosting which work with fs?

jolly seal
#

any server-ful hosting will work with fs

#

your private server, digital ocean, render, fly.io, railway, etc

#

but they are not free

#

conventional hosting is always more expensive than serverless

fallow hemlock
#

:((

#

Ill have to rewrite my backend

alpine idolBOT
#
✅ Success!

This question has been marked as answered! If you have any other questions, feel free to create another post

Jump to answer

[Click here](#1151080393815113728 message)