Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.3k views
in Technique[技术] by (71.8m points)

用gitlab-ci构建部署项目,报错cp: target ' ' is not a directory

stages:
    - build
build:
    stage: build
only:
    - master
script:
    - cp -r dist/* /mnt/myproj/www
tags:
    - testTag

报错:
$ cp -r dist/* /mnt/myproj/www
cp: target '/mnt/myproj/www' is not a directory

目标主机存在/mnt/myproj/www,不知道什么原因


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

target '/mnt/myproj/www' is not a directory 告诉你这个/mnt/myproj/www不是目录。你这个拷贝期望最后一个目标是目录


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...