Hi there. I am trying to deploy a react application and I am getting the error: ‘Deploy Error: Non-Zero Exit Code’ The console output is: [2022-02-08 00:03:22] ℹ 「wds」: Project is running at http://xx.xxx.xx.xxx/ [2022-02-08 00:03:22] ℹ 「wds」: webpack output is served from [2022-02-08 00:03:22] ℹ 「wds」: Content not from webpack is served from /workspace/public [2022-02-08 00:03:22] ℹ 「wds」: 404s will fallback to / [2022-02-08 00:03:22] Starting the development server… [2022-02-08 00:03:22]
I see no error in the console. Note: this is on the deployment console. On the development console everything seems to be in order with no errors reported
On my local machine I run the exact same commands and it works without an issue.
Any advice would be appreciated.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi there,
It looks like that you are deploying your React app as a web service rather than a static site and it is using the development server.
What you could do instead is to follow the steps here on how to deploy your React app as a static website:
Best,
Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.