# WSLでDiscourseをセルフホストするとエラーが表示され、表示されたコマンドも機能しません

**URL:** https://meta.discourse.org/t/self-hosting-discourse-with-wsl-shows-an-error-the-command-shown-also-doesnt-work/387347
**Category:** Support
**Created:** [2025 年 11 月 1 日午後 12:32 UTC](https://meta.discourse.org/t/self-hosting-discourse-with-wsl-shows-an-error-the-command-shown-also-doesnt-work/387347 "2025-11-01T12:32:41Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![raadtotheraad](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/raadtotheraad/32/527788_2.png) [@raadtotheraad](https://meta.discourse.org/u/raadtotheraad)
#### Post date: [2025 年 11 月 1 日午後 12:32 UTC](https://meta.discourse.org/t/self-hosting-discourse-with-wsl-shows-an-error-the-command-shown-also-doesnt-work/387347/1 "2025-11-01T12:32:41Z")

</div>

# ActiveRecord::PendingMigrationError

**マイグレーションが保留中です。この問題を解決するには、次を実行してください:**

**bin/rails db:migrate**

**保留中のマイグレーションが 269 件あります:**

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [2025 年 11 月 1 日午後 1:24 UTC](https://meta.discourse.org/t/self-hosting-discourse-with-wsl-shows-an-error-the-command-shown-also-doesnt-work/387347/2 "2025-11-01T13:24:48Z")

</div>

こんにちは、ここでは開発サーバーですか、それとも本番サーバーですか？開発用だと仮定しますか？

---

<div class="post-metadata">

### Author: ![raadtotheraad](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/raadtotheraad/32/527788_2.png) [@raadtotheraad](https://meta.discourse.org/u/raadtotheraad)
#### Post date: [2025 年 11 月 1 日午後 1:37 UTC](https://meta.discourse.org/t/self-hosting-discourse-with-wsl-shows-an-error-the-command-shown-also-doesnt-work/387347/3 "2025-11-01T13:37:46Z")

</div>

それはセルフホストなので、Discourse を試しています

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [2025 年 11 月 1 日午後 1:49 UTC](https://meta.discourse.org/t/self-hosting-discourse-with-wsl-shows-an-error-the-command-shown-also-doesnt-work/387347/4 "2025-11-01T13:49:16Z")

</div>

WSL はサポートされている本番環境構成ではありません。

---

<div class="post-metadata">

### Author: ![raadtotheraad](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/raadtotheraad/32/527788_2.png) [@raadtotheraad](https://meta.discourse.org/u/raadtotheraad)
#### Post date: [2025 年 11 月 1 日午後 2:15 UTC](https://meta.discourse.org/t/self-hosting-discourse-with-wsl-shows-an-error-the-command-shown-also-doesnt-work/387347/5 "2025-11-01T14:15:59Z")

</div>

他にウィンドウの方法はありますか？

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [2025 年 11 月 1 日午後 2:20 UTC](https://meta.discourse.org/t/self-hosting-discourse-with-wsl-shows-an-error-the-command-shown-also-doesnt-work/387347/6 "2025-11-01T14:20:24Z")

</div>

はい、ただし、サポートは限られており、ほとんど一人で対応することになります。

クラウドUbuntu VPSは、推奨およびサポートされているプラットフォームです。

WSLは、あなたがウィザード🧙🏼であり、ほとんどの問題を自分で解決する準備ができている場合に意味があります。

---

<div class="post-metadata">

### Author: ![raadtotheraad](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/raadtotheraad/32/527788_2.png) [@raadtotheraad](https://meta.discourse.org/u/raadtotheraad)
#### Post date: [2025 年 11 月 2 日午後 12:11 UTC](https://meta.discourse.org/t/self-hosting-discourse-with-wsl-shows-an-error-the-command-shown-also-doesnt-work/387347/7 "2025-11-02T12:11:34Z")

</div>

VMを試してみます。少し手間がかからないので。

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [2025 年 11 月 2 日午後 12:16 UTC](https://meta.discourse.org/t/self-hosting-discourse-with-wsl-shows-an-error-the-command-shown-also-doesnt-work/387347/8 "2025-11-02T12:16:32Z")

</div>

クラウドVMは、本番環境のインスタンスをホストしたい場合に使用します。 **開発** にWSLを使用したい場合は、[こちらのガイド](https://meta.discourse.org/t/install-discourse-on-windows-for-development/75149/1)に従ってください。 **本番環境** で実行したい場合は、簡単ではありません（また、コンピューターを24時間年中無休で稼働させることは望ましくありません）。

---

<div class="post-metadata">

### Author: ![raadtotheraad](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/raadtotheraad/32/527788_2.png) [@raadtotheraad](https://meta.discourse.org/u/raadtotheraad)
#### Post date: [2025 年 11 月 2 日午後 1:00 UTC](https://meta.discourse.org/t/self-hosting-discourse-with-wsl-shows-an-error-the-command-shown-also-doesnt-work/387347/9 "2025-11-02T13:00:12Z")

</div>

> [@NateDhaliwal](#):
>
> (コンピューターを24時間年中無休で稼働させたくないでしょう)。

遊びでディスコースをやっています。

自分でやるためにVMを使用しており、すでにIPアドレスを見つけました(なぜか)。

開発用かホスティング用か区別するのが大変だったので、助かりました。

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2025 年 12 月 2 日午後 1:00 UTC](https://meta.discourse.org/t/self-hosting-discourse-with-wsl-shows-an-error-the-command-shown-also-doesnt-work/387347/10 "2025-12-02T13:00:44Z")

</div>

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