10 months ago
I changed my startapp's build and deploy start command.
The code had no changes but still, it throws error and fails deploying.
Previously we had no build command and start app was this
lerna run dev --scope start-app
Now I added build command
lerna run build --scope start-app
and for the deploy start command I added
lerna run start --scope start-app
Everything is working nice in local but build somehow fails in railway. We are using the same env variables, but it doesn't make a difference.
I am suspicious that the newest version of the code is not building, but it is using something from cache but I have no proof to support this theory.
How can I fix it?
ⓘ Deployment information is only viewable by project members and Railway employees.
3 Replies
10 months ago
Hey, there are a lot of services in a lot of different environments, please provide -
Project name.
Environment name.
Service name.
10 months ago
Project name: Circa apps
Environment name: dev
Service name: [CA start]
After error continues I rolled back to old command for fixing dev environment. You can use this link to look at the deployment
Fail number 1
https://railway.app/project/cfcef88b-d7c8-427c-97c1-5e86c6aaab9d/service/49169419-d964-4727-b46f-5a0f56679eec?id=c104bfdc-c2a3-414b-b38c-e1fa380cdb0b
Fail number 2
https://railway.app/project/cfcef88b-d7c8-427c-97c1-5e86c6aaab9d/service/49169419-d964-4727-b46f-5a0f56679eec?id=28a6c2de-76fe-43c4-9f4b-9c64c5e77eec
Fail number 3
https://railway.app/project/cfcef88b-d7c8-427c-97c1-5e86c6aaab9d/service/49169419-d964-4727-b46f-5a0f56679eec?id=5ecb3ecd-9496-4065-942a-355903631702
10 months ago
From your build logs -
Error: <Html> should not be imported outside of pages/_document.
And
TypeError: Cannot read properties of null (reading 'useContext')