2 years ago
im new using railway and i have planning with my team to choose railway for back end server
Problem
in my app im save user session where them login or connected to whatsapp, im saving on folder name Session on structure folder
while im test at local its run as well as im excpected but after im deploy to railway server, the session cant be found and respon for all my api that required session, gave response ('session not found, connected firs')
in order after deploy to railway server ive already connected 1 session and its connected on my phone
but after i want access other API that require session id/nname its show session not found
i think the problem its in railway i cant create and save file and its make me confuse
sorry but i dont have any clue
maybe someone can explain and what should i do next because im and my team already expected and choose railway for back end server
thankss any help that was very usefull for me
4 Replies
2 years ago
You likely just have your file paths done incorrectly, you would also need to store such information on a volume for persistence -
Status changed to Solved Railway • almost 2 years ago
2 years ago
You likely just have your file paths done incorrectly, you would also need to store such information on a volume for persistence -
but it works on local, i dont know if path changes while im deploy to railway
2 years ago
Unfortunately working locally does not rule out code or confirmation issues, I recommend reading up on relative vs. absolute file paths, along with adding more verbose debug logging to you application.
2 years ago
its works after im adding volumes, same as folder name session saved
thanks a lot i've already know if there was volumes in railway for saving file on server