如何编写用于部署angular universal应用程序的bitbucket管道?
我正试图通过bitbucket管道在服务器上部署angular universal应用程序。我在如何编写用于部署angular universal应用程序的bitbucket管道?,angular,pipeline,continuous-deployment,angular-universal,bitbucket-pipelines,Angular,Pipeline,Continuous Deployment,Angular Universal,Bitbucket Pipelines,我正试图通过bitbucket管道在服务器上部署angular universal应用程序。我在bitbucket pipelines.yml中编写了如下脚本: pipelines: default: - step: name: Build app caches: - node script: - npm install - npm install -g @angular/cl
bitbucket pipelines.yml
中编写了如下脚本:
pipelines:
default:
- step:
name: Build app
caches:
- node
script:
- npm install
- npm install -g @angular/cli
- npm run build:ssr
- npm run serve:ssr
artifacts:
- dist/**
Mypackage.json
包含以下脚本:
"scripts": {
"ng": "ng",
"start": "ng serve -c=dev -o",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e",
"build:ssr": "npm run build:client-and-server-bundles && npm run webpack:server",
"serve:ssr": "node dist/server.js",
"build:client-and-server-bundles": "ng build --prod && ng run my-app:server",
"webpack:server": "webpack --config webpack.server.config.js --progress --colors"
},
当执行npm run-service:ssr
时,我看到它提供与本地主机上相同的输出,即节点服务器监听http://localhost:4000
。它在这一点上卡住了。我做错了什么