R
Railway3mo ago
jeff

I have a simple CRA. i have added public domain. when trying to browse it says Nothing is here.

nothing is in the logs
Solution:
https://github.com/brody192/create-react-app-starter copy the nixpacks.toml and Caddyfile from this repo into your frontend project...
Jump to solution
21 Replies
Percy
Percy3mo ago
Project ID: 99242535-0c1b-4c99-b8d5-5393175cdd3e
jeff
jeff3mo ago
99242535-0c1b-4c99-b8d5-5393175cdd3e
Brody
Brody3mo ago
please read it carefully, it specifically says "...yet"
jeff
jeff3mo ago
its been ages. "Application failed to respond"
Brody
Brody3mo ago
that's a different error what kind of app are you deploying
jeff
jeff3mo ago
its an app with a front-end cra, a backnd express and a mongo. the backend seems fine with a url. backend is talking to mongo frontend can't seem to get traffic from the domain.
Brody
Brody3mo ago
please be more specific, what kind of frontend
jeff
jeff3mo ago
i also can't seem to be able to see any logs. so i have no idea what port its trying ot map to. my CRA runs locally, and if i prefix PORT=xxx, it correctly boots the server to that port.
Brody
Brody3mo ago
again, please be more specific, what kind of frontend
jeff
jeff3mo ago
its a CRA (create react app). im not really sure what you mean. the nixpack runs the yarn run start, which works well locally. what do you mean. "be more speciifc" provide me some options to this answer.
Brody
Brody3mo ago
I was not aware of the acronym for that
jeff
jeff3mo ago
ok
Brody
Brody3mo ago
the start command runs a development server, what have you done to provide a production ready server?
jeff
jeff3mo ago
what would i need to do here? its not really for production yet. i kinda of want it to run and serve via yarn run start for now.
jeff
jeff3mo ago
No description
Brody
Brody3mo ago
you do not want to be running a development server on railway regardless of the state of your project
jeff
jeff3mo ago
ok.
Solution
Brody
Brody3mo ago
https://github.com/brody192/create-react-app-starter copy the nixpacks.toml and Caddyfile from this repo into your frontend project
jeff
jeff3mo ago
so if im only doing a static build then, should i just move it to a mono repo?
Brody
Brody3mo ago
I did not suggest any such changes
jeff
jeff3mo ago
ok ok thanks. this looks much better.