Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Not Issue]how to deployed on Linux #103

Open
dodoqumy opened this issue Nov 13, 2020 · 1 comment
Open

[Not Issue]how to deployed on Linux #103

dodoqumy opened this issue Nov 13, 2020 · 1 comment

Comments

@dodoqumy
Copy link

dodoqumy commented Nov 13, 2020

我在云服务器上部署了hexo服务 想不登录server在client端发博客消息
hexo的客户端真的不多 不知道hexo-client能否支持我的需求。

hexo-client已经通过electron做成app形式很方便!
从项目描述和打开app的配置看貌似不支持配置remote端hexo服务。
从vue项目看推测应该可以部署到server端通过bs形式服务(那是不是就不需要electron组件了)。

@gaoyoubo 整理个官方的linux上部署 远程访问hexo-client的手顺吧
有人需要的话能少耽误一些时间

我在centos上折腾了好几天

  1. 一开始(c)npm install卡在node-sass(node-gyp@3.8.0 ... forceing ‘make’)模块上
    更新gcc g++(默认版本4.8)还是不行
    后来把package.json的node-sass版本改为^4.14.0后node-sass的安装问题才解决

  2. 又遇到"sh -C electron-builder install-app-deps"错误
    放弃(c)npm使用yarn install后解决

  3. 又遇到yarn无限waiting问题
    通过设置yarn解决:

    yarn config set registry https://registry.npm.taobao.org -g
    yarn config set disturl https://npm.taobao.org/dist -g
    yarn config set electron_mirror https://npm.taobao.org/mirrors/electron/ -g
    yarn config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/ -g
    yarn config set phantomjs_cdnurl https://npm.taobao.org/mirrors/phantomjs/ -g
    yarn config set chromedriver_cdnurl https://cdn.npm.taobao.org/dist/chromedriver -g
    yarn config set operadriver_cdnurl https://cdn.npm.taobao.org/dist/operadriver -g
    yarn config set fse_binary_host_mirror https://npm.taobao.org/mirrors/fsevents -g

还在继续采坑中

@xdu
Copy link

xdu commented Dec 6, 2020

如果需要远程使用,还是做一个web的客户端比较合适,electron是桌面客户端。

node-sass的版本问题令人头疼。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants