config file railway.json does not exist in the new created environment
I have a project already working with Github and Postgress, I created a new environment from it, but now I can't deploy the project from Github because it keeps giving the error "config file railway.json does not exist", and that it is configured exactly the same as the main environment project.
Solution:Jump to solution
I solved the problem, I simply had to specify the path /backend/railway.json, I didn't know I had to do this because I thought it would get everything I specified in the field above as "/backend"
30 Replies
Project ID:
6eca6984-5b4b-40cd-9660-dab7e99f7321
6eca6984-5b4b-40cd-9660-dab7e99f7321
can you show a screenshot of this error?
@Brody
![No description](https://cdn.answeroverflow.com/1193186527530991676/image.png)
![No description](https://cdn.answeroverflow.com/1193186593515774022/image.png)
where is your railway.json file located
@Brody The project is configured exactly the same as the production environment, but in the development environment that I created it does not work, as it is the same project, the same path but with a new database
/backend/railway.json
what is the root directory set to
This here is the same project running in the production environment, with the same configuration, same commit and same railway.json file
![No description](https://cdn.answeroverflow.com/1193187107393515520/image.png)
Produtction
![No description](https://cdn.answeroverflow.com/1193187264277270538/image.png)
Development (new environment)
![No description](https://cdn.answeroverflow.com/1193187500655661066/image.png)
Project in github: https://github.com/mariopaglia/nextjs-structure
do you perhaps have a service variable that's trying to tell railway where a railway.json is?
![No description](https://cdn.answeroverflow.com/1193188106287972422/image.png)
well then that's about all the basic debugging steps I can think of, I will have to flag the team