【发布时间】:2020-06-06 12:28:56
【问题描述】:
我正在尝试使用 gitlab 页面来托管我由 Sapper 和 Svelte 生成的静态网站。
我使用了入门文档中的 sapper starter 应用程序:
npx degit "sveltejs/sapper-template#rollup" my-app
我将 .gitlab-ci.yml 文件添加为 gitlab 文档指示:
# This file is a template, and might need editing before it works on your project.
image: node:latest
# This folder is cached between builds
# http://docs.gitlab.com/ce/ci/yaml/README.html#cache
cache:
paths:
- node_modules/
pages:
stage: deploy
script:
- npm run export
- mkdir public
- mv __sapper__/export public
artifacts:
paths:
- public
only:
- master
当管道运行时,它说它通过了,但即使经过一天的等待,我仍然会收到 404 错误。
有人用 sapper 成功地做到了这一点吗??
【问题讨论】:
标签: gitlab gitlab-ci gitlab-ci-runner svelte sapper