在我的package.json
我有以下脚本:
"scripts": {
"api": "node ./api/index.js",
"client": "node ./client/index.js",
"start": "npm run client && npm run api"
},
我正在尝试运行start
,这会启动我的客户端(反应前端)和api。在我的Procfile
中,我有:web: npm run start
。 Heroku构建成功,但只有第一个脚本运行。我的应用程序部署到Heroku后,有没有办法从我的Procfile
运行多个npm脚本?