Answer the question
In order to leave comments, you need to log in
Gitlab CI. Deploy to ftp, deploy only changes, or at least exclude the folder?
I have a .gitlab-ci.yml file:
deploy:
script:
- apt-get update -qq && apt-get install -y -qq lftp
- lftp -c "set ftp:ssl-allow no; open -u $USERNAME,$PASSWORD $HOST; mirror -Rnev ./ /www/example.com --ignore-time --parallel=10 --exclude-glob .git* --exclude .git/"
only:
- master
Answer the question
In order to leave comments, you need to log in
deploy:
script:
- apt-get update -qq && apt-get install -y -qq lftp
- lftp -c "set ftp:ssl-allow no; open -u $USERNAME,$PASSWORD $HOST; mirror -Rnev ./ /www/example.com --ignore-time --parallel=10 --exclude-glob .git* --exclude .git/ --exclude vendor/ --exclude frontend/web/sitemap.xml --exclude frontend/web/assets/ --exclude frontend/web/uploads/"
only:
- master
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question