هل إنشاء ملف ثانٍ شبيه بـ app.yml كافٍ للمواقع المتعددة؟

أنا أحاول إنشاء نسخة ثانية من Discourse على جهازي لتعمل عبر نطاق مختلف باستخدام وكيل عكسي.

هل يُعتمد نسخ ملف app.yml الحالي إلى app2.yml، وتعديل ما يحتاج إلى تعديل، ثم تشغيل ./launcher build app2؟

3 إعجابات

Yes. You can do that. But I would recommend spending a bit more time to move to separate web and data containers so that you have only a single instance of redis and Postgres running. But if you don’t care about wasting some ram and don’t need the benefit of reduced down time when your rebuild, your idea is fine.

This will use a bit more ram than a multisite setup but allows you to have different sets of plugins.

6 إعجابات

This sounds like something which would help me. I could reduce my costs by consolidating two hosts into one (slightly) bigger one.

If you are successful I’d much appreciate a description of your setup. I’m an experienced linux admin but not experienced in this area.

I hear you, but having read that several times in the past I’d be interested in something simpler. Both my forums are small and low traffic.

إعجاب واحد (1)

In that case, yes, a second copy of samples/standalone.yml will do fine - but: make sure to update the /var/discourse/shared/[standalone]/ and other host-exposed resources to another name.

إعجابَين (2)