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

部署zhoulab.ac.cn页面 #4

Open
ShixiangWang opened this issue Dec 6, 2023 · 0 comments
Open

部署zhoulab.ac.cn页面 #4

ShixiangWang opened this issue Dec 6, 2023 · 0 comments
Labels

Comments

@ShixiangWang
Copy link
Member

ShixiangWang commented Dec 6, 2023

这篇文章记录的是怎么将单页面的主页同步上传到展示网站的 FTP 服务器上。由于目前将本博客网站作为主页部署,直接桥联了 GitHub Pages 和对应域名,这篇文章已经过时了。

该部署发生在德国 yunfa server 的 root 账号下。

采用了一个叫做 upload-ftp 的 vscode 插件帮助存储 ftp 配置以及快速上传文件。

配置文件在 /root/.vscode/upload.json

{
    "server": {
        "host": "xxx",
        "port": 21,
        "user": "xxx",
        "password": "xxx"
    },
    "files": [
        {
            "localfile": "/root/index.html",
            "remotefile": "/index.html"
        }
    ],
    "dirs":[
    ]
}

完成配置后右键 .vscode 文件夹然后点击上传按钮即可。

image
@ShixiangWang ShixiangWang changed the title 部署 https://zhoulab.ac.cn/ 页面 部署zhoulab.ac.cn页面 Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant