Level 80
Jun 28, 2021
2
Level 1
Make automatically deployment from gitlab in ftp fast
Hi, I have this script that I deploy automatically, I know it's not ok to put the variables in the script but it's just for testing. How can I deploy faster? without deleting vendor and node_modules and also storage ... and can run automatic craftsman commands thanks
variables:
HOST:
USERNAME:
PASSWORD:
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 ./ ./public_html --ignore-time --parallel=10 --exclude-glob .git* --exclude .git/"
only:
- master
Please or to participate in this conversation.