# 로컬에 Ubuntu Discourse를 설치하는 문제

**URL:** <https://meta.discourse.org/t/the-problem-install-local-ubuntu-discourse/359644>\
**Category:** Product Support\
**Created:** [3월 31, 2025, 2:12오후 UTC](https://meta.discourse.org/t/the-problem-install-local-ubuntu-discourse/359644 "2025-03-31T14:12:54Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![tom\_Elon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tom_elon/32/496724_2.png) [@tom\_Elon](https://meta.discourse.org/u/tom_Elon)\
**Post date:** [3월 31, 2025, 2:12오후 UTC](https://meta.discourse.org/t/the-problem-install-local-ubuntu-discourse/359644/1 "2025-03-31T14:12:54Z")

</div>

로컬호스트에 Discourse를 설치한 후 ./discourse-setup을 실행했습니다. 앱은 성공적으로 빌드되었습니다.  
하지만 app.yml을 수정하여 다음 줄을 추가한 후 ./launcher rebuild app.yml을 실행하면 항상 문제가 발생합니다.

```plaintext
templates:
  - "templates/postgres.template.yml"
  - "templates/redis.template.yml"
  - "templates/web.template.yml

```

```plaintext
"
  *- "templates/web.china.template.yml"*

```

ChatGPT, Grok, DeepSeek에 질문을 해보았지만 결국 문제를 해결하지 못했습니다. 구체적인 문제는 다음과 같습니다:

```plaintext
FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && sudo -H -E -u discourse bash -c '
  set -o errexit
  if [$(git rev-parse --is-shallow-repository) == "true"]; then
      git remote set-branches --add origin main
      git remote set-branches origin tests-passed
      git fetch --depth 1 origin tests-passed
  else
      git fetch --tags --prune-tags --prune --force origin
  fi
' failed with return #<Process::Status: pid 145 exit 128>
Location of failure: /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"code", "cmd"=>["sudo -H -E -u discourse git clean -f", "sudo -H -E -u discourse bash -c '\n set -o errexit\n if [$(git rev-parse --is-shallow-repository) == \"true\"]; then\n git remote set-branches --add origin main\n git remote set-branches origin $version\n git fetch --depth 1 origin $version\n else\n git fetch --tags --prune-tags --prune --force origin\n fi\n'", "sudo -H -E -u discourse bash -c '\n set -o errexit\n if [[$(git symbolic-ref --short HEAD) == $version]] ; then\n git pull\n else\n git -c advice.detachedHead=false checkout $version\n fi\n'", "sudo -H -E -u discourse git config user.discourse-version $version", "mkdir -p tmp", "chown discourse:www-data tmp", "mkdir -p tmp/pids", "mkdir -p tmp/sockets", "touch tmp/.gitkeep", "mkdir -p /shared/log/rails", "bash -c \"touch -a /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log\"", "bash -c \"ln -s /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log $home/log\"", "bash -c \"mkdir -p /shared/{uploads,backups}\"", "bash -c \"ln -s /shared/{uploads,backups} $home/public\"", "bash -c \"mkdir -p /shared/tmp/{backups,restores}\"", "bash -c \"ln -s /shared/tmp/{backups,restores} $home/tmp\"", "chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups /shared/tmp", "[! -d public/plugins] || find public/plugins/ -maxdepth 1 -xtype l -delete"]}

```

제발 도와주실 수 있는 분 없을까요? 제 업무용으로 훈련 및 Q&A 시스템을 구축하고 싶습니다.

---

_[View the full topic](https://meta.discourse.org/t/the-problem-install-local-ubuntu-discourse/359644)._
