I’ve been trying to deploy a react app, was messing around for a while until I realized you have to build it on the component settings, but I also want to build a PHP server to manage some queries, when I do it on my machine I open a terminal and run
PHP -S localhost:8000 them I head back to the root folder and run
npm run build and it works.
Tried the same workflow on the DigitalOcean panel but it’s just building the app without the server
I know I’m probably missing something in the workflow but what I have in the commands tab is
cd PHP/ PHP -S localhost:8000 cd - npm run build
is there any way to run both commands at the same time and how do I know on which port is the build running?
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.