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