問題
-
CLI で
lcp deployコマンドを使用してサービスをデプロイした後、コマンドは既存の git リモート起点構成を消去し、空白の値に置き換えているように見えます (git remote -vコマンドの実行時に観察されます)。lcp deploy自体は成功しますが、別のビルドをリポジトリにプッシュしようとすると、次のエラーが発生します。fatal: 'origin' does not appear to be a git repository fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
- CLI バージョン 3.7.8 から 3.7.9 または 3.8.0 に更新しようとしても、問題が解決しないようです。
Environment
- Liferay エクスペリエンス クラウド CLI
解決策
- この動作は、
lcp updateを使用して CLI を v3.8.1+ に更新することで解決できます。これにより、lcp deployで git origin 値が消去されなくなります。
追加情報
- git origin が以前に消去されている場合は、ターミナルで次のコマンドを実行して、欠落している git origin 値を復元できます (これは、v3.8.1 に更新した後に 1 回だけ実行する必要があります)。
git remote remove origin git remote add origin [origin value; for example, git@github.com:organization/repository.git]
- CLIツールによる変更点のデプロイ
- LXC を使用して単一のサービスのみを更新およびデプロイする方法