Hello,
on my local computer I have a repo with php-code like this:
- index.php
- sub-folder/.htaccess
- sub-folder/.htpasswd
Because for local development and testing I have a local web server which points to the root-folder I can easily access my index.php without the htaccess-check.
But on my online-server (for other users) I want to have a result like this:
- index.php
- .htaccess
- .htpasswd
My question: How can I do this with Bitbucket Pipeline?
I need ideas please how to move the 2 files from the sub-folder to root-directory during the build process.
The upload via FTP is already running... here a part from my bitbucket-pipelines.yml:
- pipe: atlassian/ftp-deploy:0.3.7
variables:
USER: $FTP_USER
SERVER: ftp.strato.de
REMOTE_PATH: /
PASSWORD: $FTP_PASSWORD
If you have better ideas instead of atlassian/ftp-deploy I'm open for ideas too :-)
PS: SFTP is not running with Strato... For ssh.strato.de there was this error message coming up > but FTP was working:


Many thanks :-)
Michael