We have a react app built using CRA that has both a react development server and an express server. Currently to run them locally we use a script that starts them both up
// server scripts
"dev-webpack-server": "react-scripts --max_old_space_size=2048 start",
"dev-express-server": "export NODE_ENV=development; export PORT=9950; nodemon -e js,html --ignore build/ ./server.js",
and
// joint script
run-p dev-express-server dev-webpack-server;
When trying to run the okteto up
command, to execute the joint script, the index.html file is no longer getting the rendering a white screen with no errors in the console. I assume this is something to do with the webpack server not working correctly with my Okteto setup. What am I doing wrong?
my okteto.yml
portion for dev is as follows (‘okteto’ command is the joint script above)
dev:
app-www:
command: ["npm", "run", "okteto"]
resources:
limits:
memory: '3Gi'
sync:
- .:/app/