gitbook部署服务器(五)

目录

1.构建项目

 2,部署

2.1.Pages服务 


 

1.构建项目

先在.bookignore里输入不想要被打包的文件

 

然后终端输入

PS D:\前端\vswebdesgin> gitbook build
info: 10 plugins are installed 
info: 7 explicitly listed 
info: loading plugin "search-pro"... OK
info: loading plugin "code"... OK 
info: loading plugin "back-to-top-button"... OK
info: loading plugin "highlight"... OK 
info: loading plugin "sharing"... OK 
info: loading plugin "fontsettings"... OK 
info: loading plugin "theme-default"... OK
info: found 1 pages 
info: found 1 asset files
info: >> generation finished with success in 0.7s ! 

 这是部署好的文件夹

 2,部署

2.1.Pages服务 

 Gitee - 基于 Git 的代码托管和研发协作平台

如何将本地项目上传到gitee - 游在空中的鱼 - 博客园如何将本地项目上传到gitee不想废话,直入主题: 第一步:首先你得有一个gitee仓库(登录注册自己解决)友情提供: gitee官网地址. 首先:进入git额额官网(登录注册自己解决,没难度) 新建https://www.cnblogs.com/hongshaozi/p/12700804.html

 新建一个空文件夹

 

 

 复制仓库地址

 填写用户名和密码时

Git中 Incorrect username or password ( access token )_我的博客-CSDN博客

就是输入gitee.com的用户名和密码

 在这里再打开git bash

 

 然后把项目粘贴过来

hu211@DESKTOP-MGVVROH MINGW64 /d/Gitee/gitbook-practice (master)
$ git add .
warning: LF will be replaced by CRLF in _book/gitbook/fonts/fontawesome/fontawesome-webfont.svg.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in _book/gitbook/gitbook-plugin-code/plugin.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in _book/gitbook/gitbook-plugin-code/plugin.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in _book/gitbook/gitbook-plugin-fontsettings/fontsettings.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in _book/gitbook/gitbook-plugin-fontsettings/website.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in _book/gitbook/gitbook-plugin-highlight/ebook.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in _book/gitbook/gitbook-plugin-highlight/website.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in _book/gitbook/gitbook-plugin-search-pro/jquery.mark.min.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in _book/gitbook/gitbook-plugin-search-pro/search.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in _book/gitbook/gitbook-plugin-search-pro/search.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in _book/gitbook/gitbook-plugin-sharing/buttons.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in _book/gitbook/gitbook.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in _book/gitbook/style.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in _book/gitbook/theme.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in _book/index.html.
The file will have its original line endings in your working directory
hu211@DESKTOP-MGVVROH MINGW64 /d/Gitee/gitbook-practice (master)
$ git commit -m't'
[master 5145649] t
 26 files changed, 2693 insertions(+)
 create mode 100644 _book/gitbook/fonts/fontawesome/FontAwesome.otf
 create mode 100644 _book/gitbook/fonts/fontawesome/fontawesome-webfont.eot
 create mode 100644 _book/gitbook/fonts/fontawesome/fontawesome-webfont.svg
 create mode 100644 _book/gitbook/fonts/fontawesome/fontawesome-webfont.ttf
 create mode 100644 _book/gitbook/fonts/fontawesome/fontawesome-webfont.woff
 create mode 100644 _book/gitbook/fonts/fontawesome/fontawesome-webfont.woff2
 create mode 100644 _book/gitbook/gitbook-plugin-back-to-top-button/plugin.css
 create mode 100644 _book/gitbook/gitbook-plugin-back-to-top-button/plugin.js
 create mode 100644 _book/gitbook/gitbook-plugin-code/plugin.css
 create mode 100644 _book/gitbook/gitbook-plugin-code/plugin.js
 create mode 100644 _book/gitbook/gitbook-plugin-fontsettings/fontsettings.js
 create mode 100644 _book/gitbook/gitbook-plugin-fontsettings/website.css
 create mode 100644 _book/gitbook/gitbook-plugin-highlight/ebook.css
 create mode 100644 _book/gitbook/gitbook-plugin-highlight/website.css
 create mode 100644 _book/gitbook/gitbook-plugin-search-pro/jquery.mark.min.js
 create mode 100644 _book/gitbook/gitbook-plugin-search-pro/search.css
 create mode 100644 _book/gitbook/gitbook-plugin-search-pro/search.js
 create mode 100644 _book/gitbook/gitbook-plugin-sharing/buttons.js
 create mode 100644 _book/gitbook/gitbook.js
 create mode 100644 _book/gitbook/images/apple-touch-icon-precomposed-152.png
 create mode 100644 _book/gitbook/images/favicon.ico
 create mode 100644 _book/gitbook/style.css
 create mode 100644 _book/gitbook/theme.js
 create mode 100644 _book/index.html
 create mode 100644 _book/pikaqiu.jfif
 create mode 100644 _book/search_plus_index.json

hu211@DESKTOP-MGVVROH MINGW64 /d/Gitee/gitbook-practice (master)
$ git push
Enumerating objects: 40, done.
Counting objects: 100% (40/40), done.
Delta compression using up to 4 threads
Compressing objects: 100% (36/36), done.
Writing objects: 100% (39/39), 638.85 KiB | 63.88 MiB/s, done.
Total 39 (delta 1), reused 32 (delta 1), pack-reused 0
remote: Powered by GITEE.COM [GNK-6.2]
To https://gitee.com/pilipilipala/gitbook-practice.git
   616c0fa..5145649  master -> master

 此时就上传成功啦

 上传完毕后发布

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值