My app has been successfully built, but it doesn't work when I try to open it up.
As the title says, I've successfully built client and api for my new project everything is good in my consoles on railway, but when I try to open up my app, I get an error "Application failed to respond"
project id: 116e0291-0b86-4a06-b492-1985abc6f7c4
Solution:Jump to solution
https://github.com/brody192/vite-react-template
copy the nixpacks.toml and Caddyfile from this repo into yours, I know it says react but that doesn't matter...
12 Replies
Project ID:
116e0291-0b86-4a06-b492-1985abc6f7c4
what kind of app?
it's a web game
sorry I should have been more clear, what technologies are involved
Oh, only typescript is used for frontend and for backend javascript
sorry I should have been even more clear, what are all the technologies involved?
xd
second
"devDependencies": {
"@types/three": "^0.164.0",
"babel-loader": "^9.1.3",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"typescript": "^5.2.2",
"vite": "^5.1.2"
},
"dependencies": {
"@babel/core": "^7.24.4",
"@babel/preset-env": "^7.24.4",
"@babel/preset-typescript": "^7.24.1",
"@types/jest": "^29.5.12",
"axios": "^1.6.8",
"babel-jest": "^29.7.0",
"three": "^0.164.1"
}
thats all including js and ts
so no framework, just vite and ts
yes
Solution
https://github.com/brody192/vite-react-template
copy the nixpacks.toml and Caddyfile from this repo into yours, I know it says react but that doesn't matter
yup that solved my problem
thanks brodster
do I always have to import those two files when im deploying onto railway?
for a vite frontend, yes