Revision #138 has been created by rackycz on Oct 4, 2019, 4:13:29 PM with the memo:
edit
« previous (#137) next (#139) »
Changes
Title
unchanged
Yii v2 snippet guide
Category
unchanged
Tutorials
Yii version
unchanged
2.0
Tags
unchanged
tutorial,beginner,yii2
Content
changed
[...]
You only need to create 1 file in your GitLab repository. It is named .gitlab-ci.yml and it should contain following code:
```
variables:
HOST: "example.com:21ftp url"
USERNAME: "
your_usernameuser"
PASSWORD: "
your_password"
FOLDER: "
./project_root/webrelative path if needed, or just ./"
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 ./ $FOLDER --ignore-time --parallel=10 --exclude-glob .git* --exclude .git/ --exclude vendor --exclude web/assets --exclude web/index.php --exclude web/index-test.php"[...]