我在尝试部署名为 tr3 的应用程序时遇到问题(它在本地主机上运行良好,而且我还学会了使用 heroku 部署“测试应用程序”,一切都很好)。但是现在,当我使用命令时
git push heroku master
有一条消息
remote: -----> Compressing...
remote: Done: 22.2M
remote: -----> Launching...
remote: Released v8
remote: https://stark-oasis-45806.herokuapp.com/ deployed to Heroku
remote:
remote: Verifying deploy... done.
To https://git.heroku.com/stark-oasis-45806.git
12055ef..fbc5e05 master -> master
Run Code Online (Sandbox Code Playgroud)
但是链接https://stark-oasis-45806.herokuapp.com/会导致错误
020-06-19T17:42:19.575287+00:00 app[web.1]: > tr3@0.1.0 start /app
2020-06-19T17:42:19.575288+00:00 app[web.1]: > npm run serve
2020-06-19T17:42:19.575288+00:00 app[web.1]:
2020-06-19T17:42:20.037740+00:00 app[web.1]:
2020-06-19T17:42:20.037766+00:00 app[web.1]: > tr3@0.1.0 serve /app
2020-06-19T17:42:20.037767+00:00 app[web.1]: > vue-cli-service serve
2020-06-19T17:42:20.037767+00:00 app[web.1]:
2020-06-19T17:42:20.045068+00:00 app[web.1]: sh: 1: vue-cli-service: not found
2020-06-19T17:42:20.049281+00:00 app[web.1]: npm …Run Code Online (Sandbox Code Playgroud)