首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >11: Netlify未显示工作流选项卡

11: Netlify未显示工作流选项卡
EN

Stack Overflow用户
提问于 2020-12-27 08:16:57
回答 1查看 97关注 0票数 1

我已经克隆了这个十一点:https://github.com/anborg/eleventy-netlify-boilerplate

我正在尝试使用本地git repo启用netlify CMS。

我希望在下面的截图中看到工作流部分(内容和媒体之间)。我应该更改什么设置才能启用工作流?

http://localhost:3000/admin/#/collections/blog

admin\config.yml

代码语言:javascript
复制
local_backend:
  url : http://localhost:3030/api/v1
  # when accessing this from other hosts
  allowed_hosts : ['*']

backend:
  name: github
  repo: anborg/one-click-hugo-cms
  branch: master # optional, defaults to master
  open_authoring: true

# Uncomment below to enable drafts
publish_mode: editorial_workflow

.env

代码语言:javascript
复制
# This file is used by stat:netlifyProxy for port 3030
#### below props are for npx netlify-cms-proxy-server #######

# optional, defaults to current directory
#GIT_REPO_DIRECTORY=FULL_PATH_TO_LOCAL_GIT_REPO
# optional, defaults to 8081
PORT=3030

package.json具有代理

代码语言:javascript
复制
{
  "proxy": "http://localhost:3030",
  "name": "eleventy-netlify-boilerplate",
  "version": "1.0.3",
  "description": "A boilerplate for building a fast static website with the Eleventy static site generator, for deployment to Netlify.",
  "scripts": {
    "start": "run-p start:**",
    "start:eleventy": "set ELEVENTY_EXPERIMENTAL=true && npx @11ty/eleventy --serve --port=3000",
    "start:netlifyProxy": "npx netlify-cms-proxy-server",

    "build": "npx eleventy",
    "watch": "npx eleventy --watch",
    "debug": "DEBUG=* npx eleventy"
  },
  "repository": {

EN

回答 1

Stack Overflow用户

发布于 2021-01-07 19:52:28

这看起来不起作用,因为local_backend部分设置不正确,或者编辑工作流还不支持它。

根据docs,您必须使用受支持的Git服务: GitLab、GitHub或BitBucket,因为编辑工作流程正在使用这些服务的特定拉-请求功能。

尝试从配置中删除该位,editorial_workflow将通过github网关进行连接。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/65461921

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档