R
Railway7mo 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
Percy7mo ago
Project ID: 99242535-0c1b-4c99-b8d5-5393175cdd3e
jeff
jeffOP7mo ago
99242535-0c1b-4c99-b8d5-5393175cdd3e
Brody
Brody7mo ago
please read it carefully, it specifically says "...yet"
jeff
jeffOP7mo ago
its been ages. "Application failed to respond"
Brody
Brody7mo ago
that's a different error what kind of app are you deploying
jeff
jeffOP7mo 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
Brody7mo ago
please be more specific, what kind of frontend
jeff
jeffOP7mo 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
Brody7mo ago
again, please be more specific, what kind of frontend
jeff
jeffOP7mo 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
Brody7mo ago
I was not aware of the acronym for that
jeff
jeffOP7mo ago
ok
Brody
Brody7mo ago
the start command runs a development server, what have you done to provide a production ready server?
jeff
jeffOP7mo 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
jeffOP7mo ago
No description
Brody
Brody7mo ago
you do not want to be running a development server on railway regardless of the state of your project
jeff
jeffOP7mo ago
ok.
Solution
Brody
Brody7mo ago
https://github.com/brody192/create-react-app-starter copy the nixpacks.toml and Caddyfile from this repo into your frontend project
jeff
jeffOP7mo ago
so if im only doing a static build then, should i just move it to a mono repo?
Brody
Brody7mo ago
I did not suggest any such changes
jeff
jeffOP7mo ago
ok ok thanks. this looks much better.
Want results from more Discord servers?
Add your server