在我的package.json我有以下脚本:
"scripts": {
"api": "node ./api/index.js",
"client": "node ./client/index.js",
"start": "npm run client && npm run api"
},
Run Code Online (Sandbox Code Playgroud)
我正在尝试运行start它来启动我的客户端(反应前端)和 api。在我的 中Procfile,我有:web: npm run start。Heroku 构建成功,但只运行第一个脚本。有没有办法在我的Procfile应用程序部署到 Heroku 后立即运行多个 npm 脚本?
| 归档时间: |
|
| 查看次数: |
2103 次 |
| 最近记录: |