宝塔部署指南 #104
Replies: 13 comments 34 replies
-
Beta Was this translation helpful? Give feedback.
-
|
如何安装yarn,我分别尝试了两种 npm install yarn -g-bash: npm: command not found yum -y install yarn |
Beta Was this translation helpful? Give feedback.
-
|
[root@VM-16-12-centos ~]# cd /home/ 这个咋解决啊,作者求解 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
感谢已经部署好了,补充一下获取key的时候遇到的问题 错误提示:Key is invalid. You must supply a key in OpenSSH public key format 错误原因:格式不正确 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
帮忙看看怎么解决 |
Beta Was this translation helpful? Give feedback.
-
|
太难了,太难了,放弃了 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
为什么其他功能都正常就是没有网页播放器呢 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
现在的问题有点多,天气和音乐都用不了,我不明白为什么一个算单页要弄的这么麻烦, |
Beta Was this translation helpful? Give feedback.








Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
部署
安装
Node环境,这一步可以使用宝塔上的Node.js版本管理器应用进行安装复制仓库地址
在站点根目录
wwwroot中打开终端,输入git clone 上面复制的仓库地址配置
ssh key在终端输入
ssh-keygen -t rsa -C "你的 GitHub 邮箱",然后一路回车打开
/root/.ssh/id_rsa.pub文件并复制其中的内容前往
https://github.com/settings/keys页面,并点击New SSH key,将上述文件内容复制进去cd到home并安装依赖yarn install执行
yarn build构建完成后就可前往 网站-添加站点 中填写正确的站点根目录即可访问站点了
更新
git pull和yarn build即可实现更新,如果改动了文件,请自行解决冲突后再尝试git pullBeta Was this translation helpful? Give feedback.
All reactions