deployment - 通过 gitlab 在 ftp 中使用自动部署的问题
问题描述
我已经尝试了几个小时来进行自动部署,但我总是收到这个错误:没有这样的文件目录
mirror: Access failed: /builds/account-01/api-dashboard/set: No such file or directory
我不明白那个来自哪里 /builds
这是我的代码
image: ubuntu:18.04
before_script:
- apt-get update -qy
- apt-get install -y lftp
build:
script:
# Sync to FTP
- lftp -e "open ftp.something.ro; user $FTP_USERNAME $FTP_PASSWORD; mirror set ftp:ssl-allow no -Rnev ./ ./public_html --ignore-time --parallel=10 --exclude-glob .git* --exclude .git/"
我使用 cPanel 。
解决方案
推荐阅读
- single-sign-on - IDP 作为 Keycloak 中的客户端
- python - 如何在 Pandas DataFrame 中执行条件添加列?
- prolog - Prolog - 我可以找到所有使谓词为真的情况吗?
- python - 如何在 tkinter 的 while 循环中更新标签?
- python - .next_sibling 返回类型 NoneType
- javascript - 如何在点击时增加和减少数字并将其存储在本地存储中?
- javascript - 图像在滚动时无限循环
- android-activity - 当我们点击 RecyclerView Items 时如何打开新 Activity 并查看详情
- python - 如何使用 numpy python 更改 SVD 的顺序
- javascript - Webdriverio 元素需要是字符串类型吗?