Legacy Knowledge Base
公開されました Sep. 10, 2025

既知の問題 [Resolved]: LXC CLI の lcp deploy コマンドを使用すると、git origin 構成が削除される

Written By

Isaac Wilson

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

問題

  • 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 値が消去されなくなります。

追加情報

Did this article resolve your issue ?

Legacy Knowledge Base