宝塔部署指南 #104
Replies: 13 comments 36 replies
-
如何安装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.
-
感谢已经部署好了,补充一下获取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.
-
部署
安装
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 pull
Beta Was this translation helpful? Give feedback.
All reactions