准备
一台电脑,或者Linux服务器,安卓可以使用termux,脑子?和你的双手
这里使用安卓termux软件进行本地部署修改,上传至github仓库后用vercel进行网站托管,使用阿里云免费域名代理,成本为0。
本教程默认你已安装git,nodejs16+,npm或者yarn[建议使用yarn]
1.拉取项目,参考图1
git clone
2.安装依赖,参考图1
cd jahir.dev
yarn
2.开发运行,参考图2
yarn dev
3.构建
yarn build
4.运行
yarn start
5.github创建仓库,把本地修改好的源码上传至刚刚创建的仓库,按下面步骤上传。
初始化本地仓库
git init
把你的代码放入暂存区
git add -A
提交到head,并给一个备注信息
git commit -m \’我的个人主页\’
添加你的远程仓库地址
git remote add origin
选择main分支,可以改名上传其它分支
git branch -M main
此处上传的是main分支
git push -u origin main
6.百度搜索vercel,使用github账号登陆注册,部署你新建的仓库,成功后可在设置中添加你自己域名进行代理
7.部署成功后的网址









© 版权声明
本站资源都来源网络搜集发布。
若有侵权或者违规内容,请联系站长删除。
资源仅供本地交流学习,请勿商用,如违反,和本资源网无关,使用者承担一切责任
若有侵权或者违规内容,请联系站长删除。
资源仅供本地交流学习,请勿商用,如违反,和本资源网无关,使用者承担一切责任
THE END
请登录后发表评论
注册