本地部署
命令行工具依赖 Node。
安装命令行工具
npm install -g wrangler
登录
# 若登录不成功,可能需要使用代理。
wrangler login
部署
wrangler pages deploy public
# 若存在项目,则选择;不存在,则需要选择创建。
? No project specified. Would you like to create one or use an existing project? › - Use arrow-keys. Return to submit.
❯ Create a new project
Use an existing project
✔ No project specified. Would you like to create one or use an existing project? › Use an existing project
✔ Select a project: › jetsung
▲ [WARNING] Warning: Your working directory is a git repo and has uncommitted changes
To silence this warning, pass in --commit-dirty=true
✨ Success! Uploaded 0 files (190 already uploaded) (0.63 sec)
✨ Uploading _redirects
🌎 Deploying...
✨ Deployment complete! Take a peek over at https://6695e2ab.jetsung.pages.dev
预览地址:https://jetsung.pages.dev