I’m trying to deploy my MERN stack project. But I keep getting error.
My github repo for this project is like
:twitter:
— root
-backend
-frontend
How can I deploy when its repo has two folder(client and server)?
And for client side, what should I input in ‘Build Command’ and ‘Publish directory’?
FYI, scripts in package.json in client side is:
“scripts”: {
“start”: “react-scripts start”,
“build”: “react-scripts build”,
…
},
and for server side, what ‘Build Command’ should be?
FYI, scripts in package.json in server side is:
“scripts”: {
“start”: “nodemon index.js”
},
Thank you! I made each repo for client and server.
I could deploy client side, but now I have problem with server side.
It said Serve running on port : 5000 but when I open https://haikulutter-backend.onrender.com/ , it says Cannot GET / .