首页 > 解决方案 > 通过 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 。

标签: deploymentgitlabgitlab-cicicd

解决方案


推荐阅读