I created a .gitlab-ci.yml file to auto deploy to my staging area. This is the file I wrote.
deploy to staging:
- lftp -p 2222 sftp://$FTPUSER_STAGING:$FTPPASSWD_STAGING@$FTPHOST_STAGING -e "set ssl:verify-certificate no; set sftp:auto-confirm yes; mirror -R . /public_html"
Mine is a CakePHP project. For some reason, only 3 files in the root folder is getting uploaded to staging. It upload only .gitlab-ci.yml, README.md and .htaccess files. It skipped index.php file and all sub folders. Is there any problem with the .gitlab-ci.yml file