我已经在本地建立了一个基于VueJs,NuxtJs和Strapi的网站。我的服务器(在one.com上)无法处理nodeJ。所以我想将我的页面构建为静态站点。我的计划是运行一条pipline,启动我的节点服务器,以便我的应用程序可以从bandi中获取数据,构建页面,然后将其自动以HTML,CSS和JS格式上传到我的服务器上。
此刻,我的管道启动了服务器,但是没有继续。
image: node:10.15.3
pipelines:
branches:
master:
- step:
name: Start Strapi Node Server
deployment: live
caches:
- node
script:
- cd server
- npm ci
- npm run start
- step:
name: Frontend Build Process
caches:
- node
script: # Modify the commands below to build your repository.
- npm ci
- npm run build
artifacts:
- dist/**