I have a full-stack project's working directory looks like:
|__ server
|
|__ client
|
|__ node_modules
|
|__ package.json
- In folder server is a NodeJs for backend
- In folder client is a ReacJs for frontend
- Here is the code in package.json in the root folder:
{
"name": "kmail",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"client": "cd client && npm start",
"server": "cd server && npm start",
"start": "concurrently - kill-others \"npm run server\" \"npm run client\""
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"concurrently": "3.5.1"
}
}
When I run the project locally, it works fine. However, when I deploy it to Heroku, it failed and here is the logs I got:
Starting process with command 'npm start'
concurrently - kill-others "npm run server" "npm run client"
concurrently - kill-others: not found
Do you know any solution to fix this? Or is there any host service other than Heroku that can help to solve my problem? Thank you very much.