Deployment 带Strapi无头CMS的管道
我已经建立了一个基于VueJs、NuxtJs和Strapi的本地网站。我的服务器(在one.com上)无法处理NodeJ。所以我想将我的页面构建为一个静态站点。我的计划是运行一个pipline,它启动我的节点服务器,这样我的应用程序就可以从strapi中获取数据,构建页面,然后将其作为HTML、CSS和JS自动上传到我的服务器上 此时,我的管道启动服务器,但不要继续Deployment 带Strapi无头CMS的管道,deployment,pipeline,headless,bitbucket-pipelines,strapi,Deployment,Pipeline,Headless,Bitbucket Pipelines,Strapi,我已经建立了一个基于VueJs、NuxtJs和Strapi的本地网站。我的服务器(在one.com上)无法处理NodeJ。所以我想将我的页面构建为一个静态站点。我的计划是运行一个pipline,它启动我的节点服务器,这样我的应用程序就可以从strapi中获取数据,构建页面,然后将其作为HTML、CSS和JS自动上传到我的服务器上 此时,我的管道启动服务器,但不要继续 image: node:10.15.3 pipelines: branches: master: - s
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/**
发现我可以用gernate运行nuxt,但这仍然不能解决我的管道问题。在生成strapi serve必须运行时,您认为本例中的数据库托管在哪里?发现我可以使用gernate运行nuxt-->,但这仍然无法解决我的管道问题。在生成strapi服务时必须运行,您认为本例中的数据库托管在哪里?