Aragornz
help with dockerfile
Thanks for your response.
I need such specific versions because the project is quite old and runs with those versions of Node and MySQL. I might also need a specific version of Yarn to install the dependencies. It's a React project so old that it uses class components and also implements SSR with an Express server.
In other words, it's an Express server that renders a page made with React, so I can deploy it directly on Railway without needing another host like Vercel, for example.
My idea was exactly as you mentioned: one instance for the database and another for the SSR server.
One more question, can automatic backups of the database be configured?
Thanks in advance for the information.
6 replies
Configuration of Temporary Directories in Railway
Thank you for your prompt response. I would like to clarify the situation regarding the temporary directory creation in my application:
Local Environment: In my local development environment, the script successfully creates and utilizes temporary directories without any issues. This functionality works as intended on my personal computer.
Deployment via Railway: However, when I deploy the application on Railway using railway up with a Docker configuration, the script encounters difficulties in creating the temporary directory. It appears that the environment provided by Railway does not allow the script to create or access the required /tmp directory, leading to the error I previously mentioned.
The error I encounter during deployment on Railway is as follows:
"PathNotFoundException: Creation of temporary directory failed, path = '/tmp' (OS Error: No such file
7 replies