Deploy only build files of react app

gp
PRO

a year ago

Hello, I'd like to ask if and how it is possible to deploy only build files of a React app. Currently, my app is really small, basically the structure you get after create-react-app command, but it takes like 5 minutes to deploy it. Is it possible to push only build files to Git Hub and deploy only these?

Thanks

6 Replies

a year ago

5 minutes seems a bit much, can you attach your build logs using this -

https://bookmarklets.up.railway.app/log-downloader/


gp
PRO

a year ago

Thank you for your answer. Logs attached

Attachments


gp
PRO

a year ago

I think the issue is, it is uploading 370 MB of files every time 😀


a year ago

Agree, it also looks like you are running a development server on Railway.


gp
PRO

a year ago

Yeah, I see. Also, I have to include node_modules in the gitignore and it should solve it


a year ago

https://github.com/brody192/create-react-app-starter

Copy the nixpacks.toml and Caddyfile from this repo into yours.

Please read the README for more info.


Deploy only build files of react app - Railway Help Station