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!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
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:
https://www.digitalocean.com/community/tutorials/how-to-deploy-a-react-application-to-digitalocean-app-platform
Best,
Bobby