Deploy react example

grsdeteccionHOBBY

a year ago

╔════════ Nixpacks v1.21.2 ═══════╗

║ setup │ nodejs18, npm-9x ║

║─────────────────────────────────║

║ install │ npm i ║

║─────────────────────────────────║

║ build │ npm run build ║

║─────────────────────────────────║

║ start │ ║

╚═════════════════════════════════╝

Error: No start command could be found

View Deploy details

ⓘ Deployment information is only viewable by Project members and Railway admins.

8 Replies

a year ago

Is this react with vite or react with create-react-app?


grsdeteccionHOBBY

a year ago

With create-react-app


a year ago

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

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


grsdeteccionHOBBY

a year ago

Now my mistake is different

Error: Docker build failed


a year ago


grsdeteccionHOBBY

a year ago

This is my log

Attachments


grsdeteccionHOBBY

a year ago

Nevermind, its vite implementation, now its working, thanks for the help, and sorry for the error


a year ago

https://github.com/brody192/vite-react-template

For Vite you would need that repo's nixpacks.toml and Caddyfile

If you are serving your site with Vite then you are running a development server, and you don't want to run development servers on Railway because they will cost you a lot.