Discourse-reactions Github が見つかりません

他の類似の問題を確認しても、この問題に正確に一致するものが見つかりませんでした。

インスタンスで discourse-reactions を有効にしたいと考えていました。通常のプロセスに従い、app.yml にリポジトリ URL を追加し、git pull./launcher rebuild app を実行した後、ブートストラップが失敗します。

以下は失敗の出力です。

FAILED
--------------------
Pups::ExecError: cd /var/www/discourse/plugins && https://github.com/discourse/discourse-reactions.git failed with return #<Process::Status: pid 289 exit 127>
Location of failure: /usr/local/lib/ruby/gems/3.2.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn'
exec failed with the params {"cd"=>"$home/plugins", "cmd"=>["mkdir -p plugins", "git clone https://github.com/discourse/docker_manager.git", "git clone https://github.com/davidtaylorhq/discourse-whos-online.git", "git clone https://github.com/discourse/discourse-push-notifications.git", "git clone https://github.com/iunctis/discourse-formatting-toolbar.git", "git clone https://github.com/jannolii/discourse-topic-trade-buttons.git", "git clone https://github.com/discourse/discourse-voting.git", "git clone https://github.com/discourse/discourse-yearly-review.git", "https://github.com/discourse/discourse-reactions.git"]}
bootstrap failed with exit code 127
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one.

上にスクロールすると、上記で見つかった唯一のエラーは次のとおりです。

I, [2024-05-03T16:25:41.537553 #1]  INFO -- :
I, [2024-05-03T16:25:41.538494 #1]  INFO -- : > cd /var/www/discourse/plugins && https://github.com/discourse/discourse-reactions.git
sh: 1: https://github.com/discourse/discourse-reactions.git: not found

GitHub ページはブラウザで簡単に表示できるため、これは奇妙に思えます。 discourse-reactions をコメントアウトすると、すべて正常にビルドされます。

これを機能させるための推奨事項やヒントはありますか?

Cheers.

編集: 再度リビルドを試したところ、次のエラーが表示されました。

2024-05-03 16:53:54.491 UTC [35] LOG:  database system is ready to accept connections
I, [2024-05-03T16:53:59.443099 #1]  INFO -- :
I, [2024-05-03T16:53:59.443248 #1]  INFO -- : > /usr/local/bin/create_db
2024-05-03 16:53:59.519 UTC [54] postgres@postgres ERROR:  database "discourse" already exists
2024-05-03 16:53:59.519 UTC [54] postgres@postgres STATEMENT:  CREATE DATABASE discourse;
createdb: error: database creation failed: ERROR:  database "discourse" already exists
2024-05-03 16:53:59.595 UTC [57] postgres@discourse ERROR:  role "discourse" already exists
2024-05-03 16:53:59.595 UTC [57] postgres@discourse STATEMENT:  create user discourse;
ERROR:  role "discourse" already exists
NOTICE:  extension "hstore" already exists, skipping
NOTICE:  extension "pg_trgm" already exists, skipping
NOTICE:  extension "vector" already exists, skipping
NOTICE:  extension "hstore" already exists, skipping
NOTICE:  extension "pg_trgm" already exists, skipping
NOTICE:  extension "vector" already exists, skipping

こんにちは、おかえりなさい :wave:

URLの前にgit cloneが抜けているようです。

以下を追加してください。

- git clone https://github.com/discourse/discourse-reactions

例として、最後の行を参照してください。

hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - git clone https://github.com/discourse/docker_manager.git
          - git clone https://github.com/discourse/discourse-knowledge-explorer
          - git clone https://github.com/discourse/discourse-reactions
「いいね!」 4

迅速な返信と歓迎をありがとうございます!

おっしゃる通りでした。GitHub URL の前に - git clone を含めるのを忘れていました。再度ビルドを実行したところ、ブートストラップは問題なく完了しました。

重ねてお礼申し上げます。

「いいね!」 3

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.