2
私はgitlab ciの自動デプロイメントにlftpを使用しています。私は他のサーバーにアップロードする必要がある '静的な'ファイルを除いて、自分のコードを展開するスクリプトを実行します。ここに私の現在のコードのサンプル。自動.gitlab-ci.yml lftp設定
script:
- >
lftp
-e "mirror
--exclude ^\.git.*
--exclude-glob *.sql
--exclude-glob *.sqlite3
--exclude-glob *.txt
--exclude-glob *.csv
--exclude-glob *.pyc
--exclude settings.py
--exclude migracion/
--exclude static/
--exclude ^Resources/Private/
--exclude \.gitlab-ci.yaml
-eRv $CI_PROJECT_DIR /pro/ject/dirs; quit;"
sftp://$ACC
これはうまくいきますが、これ以降、静的ファイルを静的ファイルサーバーに手作業でアップロードする必要があります。すべての静的フォルダ内のファイルのみを取得するスクリプトを手伝ってもらえますか?静的フォルダはルートと他のフォルダの内側にあります。多くのThx。あなたは使用することができます