現在、Bitbucket パイプラインのベータ版をテストしています (今のところ気に入っています)。しかし、私は質問があります。git-ftp を使用してソース/ファイルを正常にアップロードしていますが、その上で完全なサブドメイン パッチ ファイル (Index.php & .htaccess) をプッシュする必要があります。これらは頻繁には変更されませんが、毎回完全にプッシュする必要があります。変更だけではありません。これまでのところ、git-ftp を使用して動作させることはできません。私たちは何か間違ったことをしていますか?
私たちが保持しているエラーメッセージは次のとおりです。
- git ftp push --user $Username --passwd $Pwd ftp://dev.iwantaspeaker.com/public_html/ dev.iwantaspeaker.com/public_html/
の変更されたファイルはありません。すべてが最新です。
以下のコードの一部を含めました。お役に立てば幸いです。ありがとう。
image: samueldebruyn/debian-git
pipelines:
branches:
develop:
- step:
script:
- echo "Pipeline Init for dev."
- apt-get update
- apt-get -qq install git-ftp
- echo "'_$(git status -uno --porcelain | wc -l)_'"
- git status -uno --porcelain
- echo "Initiating Push site:dev Source."
- git config git-ftp.syncroot Source/
- git ftp push --user $Username --passwd $Pwd ftp://dev.iwantaspeaker.com/public_html/
- echo "Initiating Push site:dev subDomianPatch."
- git config git-ftp.syncroot SubDomainPatches/dev/dev_subdomain_patch/public_html/
- git ftp push --user $Username --passwd $Pwd ftp://dev.iwantaspeaker.com/public_html/