# Self-hosting

**URL:** https://meta.discourse.org/c/support/self-hosting/31.md?page=145

[最新版本](https://meta.discourse.org/latest.md) · [分類](https://meta.discourse.org/categories.md) · [標簽](https://meta.discourse.org/tags.md)

**Page:** 146

---

## [MultiContainer Benchmarks?](https://meta.discourse.org/t/multicontainer-benchmarks/55746)

<div class="topic-metadata">

**Author:** [@Blackglade](https://meta.discourse.org/u/Blackglade)\
**回覆:** 2\
**Last updated:** [2017年一月14日 08:13 UTC](https://meta.discourse.org/t/multicontainer-benchmarks/55746 "2017-01-14T08:13:20Z")

</div>

Does anyone here happen benchmarks regarding the advantages of running a single discourse instance on one container vs. multiple containers?

---

## [Installing Discourse on Heroku...best practices?](https://meta.discourse.org/t/installing-discourse-on-heroku-best-practices/51207)

<div class="topic-metadata">

**Author:** [@lsanger](https://meta.discourse.org/u/lsanger)\
**回覆:** 5\
**Last updated:** [2017年一月12日 20:56 UTC](https://meta.discourse.org/t/installing-discourse-on-heroku-best-practices/51207 "2017-01-12T20:56:51Z")

</div>

I sat down today to research installing Discourse on Heroku. I’m hoping I could get pointers on a few issues here. How well does Docker installation work, in general, on hosting sites other than Digital Ocean? I gather …

---

## [非标准端口导致上传中断](https://meta.discourse.org/t/non-standard-port-breaks-uploads/49022)

<div class="topic-metadata">

**Author:** [@jomaxro](https://meta.discourse.org/u/jomaxro)\
**回覆:** 26\
**Last updated:** [2017年一月11日 16:03 UTC](https://meta.discourse.org/t/non-standard-port-breaks-uploads/49022 "2017-01-11T16:03:05Z")

</div>

按照本指南，我在服务器上同时设置了Discourse和多个现有站点。所有之前的站点（以及Discourse）都能运行，似乎一切正常，但Discourse中的图片显示异常。图片……

---

## [How to check error logs?](https://meta.discourse.org/t/how-to-check-error-logs/55588)

<div class="topic-metadata">

**Author:** [@Miro](https://meta.discourse.org/u/Miro)\
**回覆:** 6\
**Last updated:** [2017年一月11日 14:57 UTC](https://meta.discourse.org/t/how-to-check-error-logs/55588 "2017-01-11T14:57:37Z")

</div>

How can I check log errors for discourse?

---

## ["502 bad gateway" Nginx Error](https://meta.discourse.org/t/502-bad-gateway-nginx-error/55489)

<div class="topic-metadata">

**Author:** [@divine](https://meta.discourse.org/u/divine)\
**回覆:** 3\
**Last updated:** [2017年一月11日 09:41 UTC](https://meta.discourse.org/t/502-bad-gateway-nginx-error/55489 "2017-01-11T09:41:07Z")

</div>

I installed discourse by following instructions on: Install Discourse in Under 30 Minutes It ran absolutely fine for a few months and during this time I also updated the installation a couple of times. A couple of week…

---

## [Following install guide on DO droplet finishes but doesn't work](https://meta.discourse.org/t/following-install-guide-on-do-droplet-finishes-but-doesnt-work/55520)

<div class="topic-metadata">

**Author:** [@jerdog](https://meta.discourse.org/u/jerdog)\
**回覆:** 5\
**Last updated:** [2017年一月10日 21:27 UTC](https://meta.discourse.org/t/following-install-guide-on-do-droplet-finishes-but-doesnt-work/55520 "2017-01-10T21:27:00Z")

</div>

So following the instructions from the guide (discourse/docs/INSTALL-cloud.md at main · discourse/discourse · GitHub) seems to work just fine - no errors I can see and it all comes to the end with: /usr/bin/docker run…

---

## [Need to rebuild app after changing app.yml?](https://meta.discourse.org/t/need-to-rebuild-app-after-changing-app-yml/41370)

<div class="topic-metadata">

**Author:** [@JimmyX](https://meta.discourse.org/u/JimmyX)\
**回覆:** 2\
**Last updated:** [2016年三月22日 07:42 UTC](https://meta.discourse.org/t/need-to-rebuild-app-after-changing-app-yml/41370 "2016-03-22T07:42:51Z")

</div>

If using the Virtual Box (not docker) is there a need to “rebuild the app” after changing app.yml? I actually copied some files over from the docker install because the file app.yml (taken from standalone.yml) was not t…

---

## [Plugin Installation on Amazon EC2](https://meta.discourse.org/t/plugin-installation-on-amazon-ec2/55339)

<div class="topic-metadata">

**Author:** [@chrismalone](https://meta.discourse.org/u/chrismalone)\
**回覆:** 3\
**Last updated:** [2017年一月10日 16:51 UTC](https://meta.discourse.org/t/plugin-installation-on-amazon-ec2/55339 "2017-01-10T16:51:56Z")

</div>

I am having a terrible time trying to figure out why my plugins are not installing. I have followed the instructions. I have put the appropriate code into the app.yml file. The plugin folder is there (in the app) but t…

---

## [Discourse VPS requirements](https://meta.discourse.org/t/discourse-vps-requirements/55486)

<div class="topic-metadata">

**Author:** [@Kosta](https://meta.discourse.org/u/Kosta)\
**回覆:** 3\
**Last updated:** [2017年一月10日 13:57 UTC](https://meta.discourse.org/t/discourse-vps-requirements/55486 "2017-01-10T13:57:35Z")

</div>

Hi, I have VPS Ubuntu with some PHP software as SMF and WP , Webmin using, Apache and MSQL. Can I add Discourse or it requires server for itself?

---

## [Is docker hostname the same as the subdomain for email setup?](https://meta.discourse.org/t/is-docker-hostname-the-same-as-the-subdomain-for-email-setup/48573)

<div class="topic-metadata">

**Author:** [@Jacobpossibly](https://meta.discourse.org/u/Jacobpossibly)\
**回覆:** 3\
**Last updated:** [2017年一月8日 21:14 UTC](https://meta.discourse.org/t/is-docker-hostname-the-same-as-the-subdomain-for-email-setup/48573 "2017-01-08T21:14:31Z")

</div>

Hi im wondering if im supposed to use the discourse hostname i put in app.yml to setup my mailgun account. is it the same or are they supposed to be different sub domains? I’m using cloudflare for dns and mailgun for e…

---

## [Estimating required server capacity for a popular forum](https://meta.discourse.org/t/estimating-required-server-capacity-for-a-popular-forum/35574)

<div class="topic-metadata">

**Author:** [@ljpp](https://meta.discourse.org/u/ljpp)\
**回覆:** 4\
**Last updated:** [2017年一月8日 03:48 UTC](https://meta.discourse.org/t/estimating-required-server-capacity-for-a-popular-forum/35574 "2017-01-08T03:48:00Z")

</div>

I am planning to move a rather popular forum from SMF to Discourse. The site has been running very stable of a 1GB Rackspace cloud server, but now I am trying to figure out what would be the minimum requirements with thi…

---

## [在DigitalOcean上安装时，1GB RAM出现问题](https://meta.discourse.org/t/installation-on-digitalocean-with-1gb-ram-complaining/55085)

<div class="topic-metadata">

**Author:** [@adam\_beers](https://meta.discourse.org/u/adam_beers)\
**回覆:** 2\
**Last updated:** [2017年一月3日 08:41 UTC](https://meta.discourse.org/t/installation-on-digitalocean-with-1gb-ram-complaining/55085 "2017-01-03T08:41:59Z")

</div>

根据https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md上的指南，我正在尝试在一台拥有1GB RAM的DigitalOcean droplet上安装discourse。discourse-setup脚本显示我需要配置一个8；

---

## [Discourse not starting up: nginx: unable to open supervise/ok: file does not exist](https://meta.discourse.org/t/discourse-not-starting-up-nginx-unable-to-open-supervise-ok-file-does-not-exist/53706)

<div class="topic-metadata">

**Author:** [@Pingless](https://meta.discourse.org/u/Pingless)\
**回覆:** 3\
**Last updated:** [2017年一月3日 08:09 UTC](https://meta.discourse.org/t/discourse-not-starting-up-nginx-unable-to-open-supervise-ok-file-does-not-exist/53706 "2017-01-03T08:09:47Z")

</div>

I’m trying to run Discourse with Let’s Encrypt behind an Apache Proxy on Ubuntu 16.04. When I start up the application, nobody is listening on the correct port (I’ve mapped it to 12080/12443 in the app.yml), and the log…

---

## [在尝试获取 push\_service\_worker.js 时发生 ERR\_INVALID\_RESPONSE](https://meta.discourse.org/t/err-invalid-response-trying-to-get-push-service-worker-js/55064)

<div class="topic-metadata">

**Author:** [@dani14\_96](https://meta.discourse.org/u/dani14_96)\
**回覆:** 4\
**Last updated:** [2017年一月2日 19:43 UTC](https://meta.discourse.org/t/err-invalid-response-trying-to-get-push-service-worker-js/55064 "2017-01-02T19:43:19Z")

</div>

我在Apache后面使用Docker容器运行Discourse，所以我的app.yml配置文件为 expose: - "8080:80" # http - "4443:443" # https 反向代理可用于http连接。我…

---

## [Setup Wizard “doesn’t exist”](https://meta.discourse.org/t/setup-wizard-doesn-t-exist/55012)

<div class="topic-metadata">

**Author:** [@eglinski](https://meta.discourse.org/u/eglinski)\
**回覆:** 2\
**Last updated:** [2017年一月2日 18:35 UTC](https://meta.discourse.org/t/setup-wizard-doesn-t-exist/55012 "2017-01-02T18:35:24Z")

</div>

I have successfully installed Discourse and used the Setup Wizard the first time. Looking to reload it but /wizard gets a Oops! That page doesn’t exist or is private. Yes, I am signed in as admin. Is there a way to chec…

---

## [Upgrade failed due to unclean database shutdown](https://meta.discourse.org/t/upgrade-failed-due-to-unclean-database-shutdown/54414)

<div class="topic-metadata">

**Author:** [@ljpp](https://meta.discourse.org/u/ljpp)\
**回覆:** 20\
**Last updated:** [2016年十二月30日 17:00 UTC](https://meta.discourse.org/t/upgrade-failed-due-to-unclean-database-shutdown/54414 "2016-12-30T17:00:21Z")

</div>

I was doing some routine on my box and also decided upgrade Discourse via ./launcher rebuild. Surprisingly, it failed. Never seen this before. I am on stable branch, so the update was from 1.6.7 to 1.6.9. ./launcher reb…

---

## [Errors in user.rb after updating local to latest](https://meta.discourse.org/t/errors-in-user-rb-after-updating-local-to-latest/54966)

<div class="topic-metadata">

**Author:** [@Pad\_Pors](https://meta.discourse.org/u/Pad_Pors)\
**回覆:** 1\
**Last updated:** [2016年十二月30日 07:43 UTC](https://meta.discourse.org/t/errors-in-user-rb-after-updating-local-to-latest/54966 "2016-12-30T07:43:29Z")

</div>

the error log: rake aborted! SyntaxError: /home/ooops/discourse/app/models/user.rb:985: syntax error, unexpected '.' if group\_from\_email&.grant\_trust\_level && ^ /home/ooops/discourse/app/mod…

---

## [RSpec failure about redis](https://meta.discourse.org/t/rspec-failure-about-redis/54860)

<div class="topic-metadata">

**Author:** [@woongbinni](https://meta.discourse.org/u/woongbinni)\
**回覆:** 3\
**Last updated:** [2016年十二月29日 00:59 UTC](https://meta.discourse.org/t/rspec-failure-about-redis/54860 "2016-12-29T00:59:47Z")

</div>

I’ve just run RSPEC and I got 2 failure It seems to be redis setting problems, but I have no idea Please give me some advice about this. Failures: 1) DiscourseRedis DiscourseRedis::FallbackHandler#initiate\_fallback…

---

## [Missing code from Adsense?](https://meta.discourse.org/t/missing-code-from-adsense/54869)

<div class="topic-metadata">

**Author:** [@TheAdmin2](https://meta.discourse.org/u/TheAdmin2)\
**回覆:** 3\
**Last updated:** [2016年十二月28日 21:09 UTC](https://meta.discourse.org/t/missing-code-from-adsense/54869 "2016-12-28T21:09:55Z")

</div>

Ok so I followed this tutorial: https://github.com/discourse/discourse-adplugin My code I got looks like this: But I must write in this: Where do I get the missing code from?

---

## [My credit on DigitalOcean used as payment, correct?](https://meta.discourse.org/t/my-credit-on-digitalocean-used-as-payment-correct/54708)

<div class="topic-metadata">

**Author:** [@TheAdmin2](https://meta.discourse.org/u/TheAdmin2)\
**回覆:** 4\
**Last updated:** [2016年十二月26日 10:21 UTC](https://meta.discourse.org/t/my-credit-on-digitalocean-used-as-payment-correct/54708 "2016-12-26T10:21:30Z")

</div>

Hi, I just deposited 50 US$ to my Digital Ocean account and it says I have 51.04US$ left as credit. Does this mean that my 20US$/month will be paid using the credit or do I have to do something else? I just don’t want …

---

## [Device 'docker0' missing after system upgrade?](https://meta.discourse.org/t/device-docker0-missing-after-system-upgrade/54625)

<div class="topic-metadata">

**Author:** [@Silvanus](https://meta.discourse.org/u/Silvanus)\
**回覆:** 26\
**Last updated:** [2016年十二月22日 14:26 UTC](https://meta.discourse.org/t/device-docker0-missing-after-system-upgrade/54625 "2016-12-22T14:26:19Z")

</div>

I did a system upgrade from 14.04 to 16.04 and it seems that after that my system is broken. Trying to start discourse with sudo ./launcher start app gives the following: Device “docker0” does not exist. Cannot connec…

---

## [Setup fail, port 80 in use](https://meta.discourse.org/t/setup-fail-port-80-in-use/54649)

<div class="topic-metadata">

**Author:** [@Silvanus](https://meta.discourse.org/u/Silvanus)\
**回覆:** 1\
**Last updated:** [2016年十二月22日 13:10 UTC](https://meta.discourse.org/t/setup-fail-port-80-in-use/54649 "2016-12-22T13:10:38Z")

</div>

Ok, so I’m kicking the server from 0 again. Started a new droplet. Created a new user, gave sudo rights, started firewall and ntp, installed docker-engine (straight by dockers guidelines) and git (with sudo apt-get inst…

---

## [Amazon SES 554 Message rejected: Email address is not verified](https://meta.discourse.org/t/amazon-ses-554-message-rejected-email-address-is-not-verified/41743)

<div class="topic-metadata">

**Author:** [@eldy](https://meta.discourse.org/u/eldy)\
**回覆:** 4\
**Last updated:** [2016年十二月20日 19:16 UTC](https://meta.discourse.org/t/amazon-ses-554-message-rejected-email-address-is-not-verified/41743 "2016-12-20T19:16:42Z")

</div>

I’m using Amazon SES. I have problem getting email verification when a user signed up. I had verify my own email address used for admin account, hence I can get it. That’s strange, how does verify address work in SES? I …

---

## [Discourse首页缺失内容](https://meta.discourse.org/t/front-page-of-discourse-missing-content/54528)

<div class="topic-metadata">

**Author:** [@DuyVu](https://meta.discourse.org/u/DuyVu)\
**回覆:** 6\
**Last updated:** [2016年十二月20日 04:40 UTC](https://meta.discourse.org/t/front-page-of-discourse-missing-content/54528 "2016-12-20T04:40:55Z")

</div>

我已更新discourse和字体页面，之前缺失内容。单个主题和管理员控制面板仍正常工作。 http://forum.openbim.com.vn/ http://forum.openbim.com.vn/t/cung-nghien-cuu-ung-dung-dynamo/

---

## [Using cloudways for discourse](https://meta.discourse.org/t/using-cloudways-for-discourse/54451)

<div class="topic-metadata">

**Author:** [@azaleas](https://meta.discourse.org/u/azaleas)\
**回覆:** 2\
**Last updated:** [2016年十二月19日 10:37 UTC](https://meta.discourse.org/t/using-cloudways-for-discourse/54451 "2016-12-19T10:37:34Z")

</div>

Hey guys, I just had a chat with cloudways, and their representative said that they’re purely php based platform. Anyone here installed discourse via this Managed cloud Platform? They seem to have a good all around supp…

---

## [在处理时遇到错误：postgresql-contrib-9.5](https://meta.discourse.org/t/errors-were-encountered-while-processing-postgresql-contrib-9-5/52670)

<div class="topic-metadata">

**Author:** [@CamilleRoux](https://meta.discourse.org/u/CamilleRoux)\
**回覆:** 16\
**Last updated:** [2016年十二月14日 07:23 UTC](https://meta.discourse.org/t/errors-were-encountered-while-processing-postgresql-contrib-9-5/52670 "2016-12-14T07:23:46Z")

</div>

你好！ 我的实例在引导时失败了（Beta Git 版本）。 这是我正在使用的模板 模板： - "templates/postgres.9.3.template.yml" - "templates/redis.template.yml" - "templates/sshd.template.yml" - 000

---

## [Updating CName Records](https://meta.discourse.org/t/updating-cname-records/54011)

<div class="topic-metadata">

**Author:** [@King\_Daniel](https://meta.discourse.org/u/King_Daniel)\
**回覆:** 1\
**Last updated:** [2016年十二月9日 13:57 UTC](https://meta.discourse.org/t/updating-cname-records/54011 "2016-12-09T13:57:39Z")

</div>

Hi guys, i am slightly stuck in the installation process. For some reason my domain provider has suggested i add the cname files via my hosting account(where my main domainis hosted) while tryinna do this i am finding it…

---

## [I can't set a CNAME for a root domain with hosting](https://meta.discourse.org/t/i-cant-set-a-cname-for-a-root-domain-with-hosting/27667)

<div class="topic-metadata">

**Author:** [@denharsh](https://meta.discourse.org/u/denharsh)\
**回覆:** 5\
**Last updated:** [2015年四月19日 20:47 UTC](https://meta.discourse.org/t/i-cant-set-a-cname-for-a-root-domain-with-hosting/27667 "2015-04-19T20:47:14Z")

</div>

Hey Guys I have purchased an account and right now on trial period. I have updated the CNAME record as suggested and waiting for the email. How much time it would take to setup? My domain is: shoutersland.com

---

## [How to determine SMTP setting from Exim?](https://meta.discourse.org/t/how-to-determine-smtp-setting-from-exim/53941)

<div class="topic-metadata">

**Author:** [@Fran](https://meta.discourse.org/u/Fran)\
**回覆:** 7\
**Last updated:** [2016年十二月8日 21:55 UTC](https://meta.discourse.org/t/how-to-determine-smtp-setting-from-exim/53941 "2016-12-08T21:55:38Z")

</div>

I’m about to try the Docker install on a linux box running Exim. I’m reading the guide in pre-flight mode, trying to make sure I understand the process before starting. I come to the SMTP setting part: SMTP server addre…

---

## [Can i run Discourse on my Main Domain?](https://meta.discourse.org/t/can-i-run-discourse-on-my-main-domain/53980)

<div class="topic-metadata">

**Author:** [@King\_Daniel](https://meta.discourse.org/u/King_Daniel)\
**回覆:** 7\
**Last updated:** [2016年十二月8日 21:44 UTC](https://meta.discourse.org/t/can-i-run-discourse-on-my-main-domain/53980 "2016-12-08T21:44:54Z")

</div>

Hi, This is my first post. I am trying to self install discourse, can i use my main domain for this installation instead of a subdomain?

[上一頁](https://meta.discourse.org/c/support/self-hosting/31.md?page=144)

[下一頁](https://meta.discourse.org/c/support/self-hosting/31.md?page=146)
