Git Product home page Git Product logo

Comments (11)

LetTTGACO avatar LetTTGACO commented on August 10, 2024

yuqueConfig 的配置发一下

from yuque-hexo.

k3lpi3b4nsh33 avatar k3lpi3b4nsh33 commented on August 10, 2024

image

from yuque-hexo.

LetTTGACO avatar LetTTGACO commented on August 10, 2024

首先,保证你的yuque-hexo的版本为1.9.5,如果不是的话,请升级到这个版本,如果还有问题

需要你找到你项目的node_modules中的yuque-hexo源码,在lib/Downloader.js的211行加上log看一下问题出在哪里?
image

from yuque-hexo.

k3lpi3b4nsh33 avatar k3lpi3b4nsh33 commented on August 10, 2024

image
你好,我是在window10環境下,我應該怎麽修改才能添加 accessKeyId, accessKeySecret呢?

from yuque-hexo.

LetTTGACO avatar LetTTGACO commented on August 10, 2024

本地跑的话,看这个示例,安装dotenv-cli,并且新建.env文件,将环境变量写入即可
https://github.com/LetTTGACO/yuque-hexo-example/blob/master/package.json

from yuque-hexo.

LetTTGACO avatar LetTTGACO commented on August 10, 2024

你的语雀token也建议写到.env文件,不要写入yuqueConfig中

from yuque-hexo.

LetTTGACO avatar LetTTGACO commented on August 10, 2024

线上部署时,如果使用github action进行部署,则可以使用自带的secret来配置环境变量,其他的部署工具也有类似的环境变量设置

from yuque-hexo.

k3lpi3b4nsh33 avatar k3lpi3b4nsh33 commented on August 10, 2024

以成功解决,谢谢你的帮助。祝你有一个好周末

from yuque-hexo.

k3lpi3b4nsh33 avatar k3lpi3b4nsh33 commented on August 10, 2024

你好,在进行线上部署的时候,secret 已经配置好,但是还是会出错。出错和 adpater (hexo) is invalid 一样。

image

在这一步,我还是不是很会设置 github action 的 环境变量,应该怎么修改呢?
图床用的是 阿里云 OSS
image

运行这些命令,貌似已经连接 我的OSS成功
image

但到了 yuque-hexo sync 还是会报错
image

from yuque-hexo.

LetTTGACO avatar LetTTGACO commented on August 10, 2024

image
如果只是使用阿里云的图床,那应该在这里配置
SECRET_ID: ${{ secrets.SECRET_ID }}
SECRET_KEY: ${{ secrets.SECRET_KEY }}
你在上面配置阿里云的密钥是为了将hexo部署到阿里云吗?

from yuque-hexo.

k3lpi3b4nsh33 avatar k3lpi3b4nsh33 commented on August 10, 2024

由于我不会 git action,今天恶补了一下知识,目前已经能够上传到博客,谢谢你。

from yuque-hexo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.