discourse

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
discourse [28/08/2024 - 12:08] – [Upgrade] admin1discourse [17/07/2025 - 10:13] (aktuell) thommie_netzwissen.de
Zeile 5: Zeile 5:
 ====== Operations ====== ====== Operations ======
  
-forum.netzwissen.de läuft mit separaten Containern für Datenbank und Web. Siehe https://meta.discourse.org/t/how-to-move-from-standalone-container-to-separate-web-and-data-containers/29413 +forum.netzwissen.de läuft mit separaten Containern für Datenbank und Web. Siehe [[https://meta.discourse.org/t/how-to-move-from-standalone-container-to-separate-web-and-data-containers/29413|https://meta.discourse.org/t/how-to-move-from-standalone-container-to-separate-web-and-data-containers/29413]] Entsprechend gibt es separate *.yml Konfigurationen für den Daten-Container und den Web-Container.
-Entsprechend gibt es separate *.yml Konfigurationen für den Daten-Container und den Web-Container. +
 <code> <code>
 +
 root@develd:/var/discourse/containers# ls -la root@develd:/var/discourse/containers# ls -la
 total 28 total 28
Zeile 17: Zeile 16:
 -rw-r--r--  1 root root    0 Nov 11  2020 .gitkeep -rw-r--r--  1 root root    0 Nov 11  2020 .gitkeep
 -rw-r--r--  1 root root 5059 Aug 20 10:11 web_only.yml -rw-r--r--  1 root root 5059 Aug 20 10:11 web_only.yml
 +
 </code> </code>
  
Zeile 22: Zeile 22:
  
 <code> <code>
-root@develd:/var/discourse# ./launcher +root@develd:/var/discourse# ./launcher
 Usage: launcher COMMAND CONFIG [--skip-prereqs] [--docker-args STRING] Usage: launcher COMMAND CONFIG [--skip-prereqs] [--docker-args STRING]
 Commands: Commands:
Zeile 34: Zeile 34:
     run:         Run the given command with the config in the context of the last bootstrapped image     run:         Run the given command with the config in the context of the last bootstrapped image
     rebuild:     Rebuild a container (destroy old, bootstrap, start new)     rebuild:     Rebuild a container (destroy old, bootstrap, start new)
-    cleanup:     Remove all containers that have stopped for > 24 hours+    cleanup:     Remove all containers that have stopped for> 24 hours
     start-cmd:   Generate docker command used to start container     start-cmd:   Generate docker command used to start container
  
Zeile 42: Zeile 42:
     --skip-mac-address         Don't assign a mac address     --skip-mac-address         Don't assign a mac address
     --run-image                Override the image used for running the container     --run-image                Override the image used for running the container
-</code> 
  
 +</code>
  
 ====== Logs ====== ====== Logs ======
- 
  
 /var/discourse/shared/standalone/log/ /var/discourse/shared/standalone/log/
Zeile 55: Zeile 54:
  
 <code> <code>
- 
 Found containers/app.yml Found containers/app.yml
  
Zeile 79: Zeile 77:
  
 Discourse container app is running Discourse container app is running
 +
 </code> </code>
  
Zeile 89: Zeile 88:
  
 ./launcher stop web_only && ./launcher rebuild data && ./launcher rebuild web_only ./launcher stop web_only && ./launcher rebuild data && ./launcher rebuild web_only
 +
 </code> </code>
  
Zeile 97: Zeile 97:
  
 ./launcher stop web_only && ./launcher rebuild web_only ./launcher stop web_only && ./launcher rebuild web_only
 +
 </code> </code>
 +
 +URLs
 +
 ====== Plugins ====== ====== Plugins ======
  
-          - git clone https://github.com/discourse/docker_manager.git+<code> 
 +      - git clone https://github.com/discourse/docker_manager.git
  
-See https://github.com/discourse/discourse/blob/master/lib/plugin/metadata.rb for the official list.+</code> 
 + 
 +See [[https://github.com/discourse/discourse/blob/master/lib/plugin/metadata.rb|https://github.com/discourse/discourse/blob/master/lib/plugin/metadata.rb]] for the official list.
  
 Plugin Installation Plugin Installation
  
-https://meta.discourse.org/t/install-plugins-in-discourse/19157+[[https://meta.discourse.org/t/install-plugins-in-discourse/19157|https://meta.discourse.org/t/install-plugins-in-discourse/19157]]
  
 ====== Maintenance ====== ====== Maintenance ======
  
 +  * - One CPU and 1GB of memory, with swap, is the minimum for a basic Discourse community. As your community grows you may need more memory or CPU resources.One CPU and 1GB of memory, with swap, is the minimum for a basic Discourse community. As your community grows you may need more memory or CPU resources.
 +  * - [[https://github.com/discourse/discourse/blob/master/docs/INSTALL.md|Our Docker container install]][Our Docker container install](https://github.com/discourse/discourse/blob/master/docs/INSTALL.md) is the only one we officially support. It guarantees easy updates, and all recommended optimizations from the Discourse team. is the only one we officially support. It guarantees easy updates, and all recommended optimizations from the Discourse team.
 +  * - You should get an email notification when new versions of Discourse are released. To update your instance via our easy one click upgrade process, visit You should get an email notification when new versions of Discourse are released. To update your instance via our easy one click upgrade process, visit [[:admin_upgrade|/admin/upgrade]][/admin/upgrade](/admin/upgrade)..
 +  * - Some other things you might eventually want to set up:Some other things you might eventually want to set up:
 +      * - [[https://meta.discourse.org/t/configure-automatic-backups-for-discourse/14855|Automatic daily backups]][Automatic daily backups](https://meta.discourse.org/t/configure-automatic-backups-for-discourse/14855)
 +      * - [[https://meta.discourse.org/t/allowing-ssl-for-your-discourse-docker-setup/13847|HTTPS support]][HTTPS support](https://meta.discourse.org/t/allowing-ssl-for-your-discourse-docker-setup/13847)
 +      * - [[https://meta.discourse.org/t/enable-a-cdn-for-your-discourse/14857|Content Delivery Network support]][Content Delivery Network support](https://meta.discourse.org/t/enable-a-cdn-for-your-discourse/14857)
 +      * - [[https://meta.discourse.org/t/set-up-reply-via-email-support/14003|Reply via Email]][Reply via Email](https://meta.discourse.org/t/set-up-reply-via-email-support/14003)
 +      * - [[https://meta.discourse.org/t/move-your-discourse-instance-to-a-different-server/15721|Import and Export your data]][Import and Export your data](https://meta.discourse.org/t/move-your-discourse-instance-to-a-different-server/15721)
 +      * - [[https://meta.discourse.org/t/how-do-i-change-the-domain-name/16098|Change the domain name]][Change the domain name](https://meta.discourse.org/t/how-do-i-change-the-domain-name/16098)
 +      * - [[https://meta.discourse.org/t/multisite-configuration-with-docker/14084|Multiple Discourse instances on the same server]][Multiple Discourse instances on the same server](https://meta.discourse.org/t/multisite-configuration-with-docker/14084)
 +      * - [[https://github.com/discourse/discourse/tree/master/script/import_scripts|Import old content from vBulletin, PHPbb, Vanilla, Drupal, BBPress, etc]][Import old content from vBulletin, PHPbb, Vanilla, Drupal, BBPress, etc](https://github.com/discourse/discourse/tree/master/script/import_scripts)
 +      * - A firewall on your server? A firewall on your server? [[https://meta.discourse.org/t/configure-a-firewall-for-discourse/20584|Configure firewall]][Configure firewall](https://meta.discourse.org/t/configure-a-firewall-for-discourse/20584)..
 +      * - A user friendly A user friendly [[https://meta.discourse.org/t/adding-an-offline-page-when-rebuilding/45238|offline page when rebuilding or upgrading?]][offline page when rebuilding or upgrading?](https://meta.discourse.org/t/adding-an-offline-page-when-rebuilding/45238)
 +      * - Embed Discourse Embed Discourse [[https://github.com/discourse/wp-discourse|in your WordPress install]][in your WordPress install](https://github.com/discourse/wp-discourse), or , or [[https://meta.discourse.org/t/embedding-discourse-comments-via-javascript/31963|on your static HTML site]][on your static HTML site](https://meta.discourse.org/t/embedding-discourse-comments-via-javascript/31963)
 +<code>
  
-- One CPU and 1GB of memory, with swap, is the minimum for a basic Discourse community. As your community grows you may need more memory or CPU resources.+cd /var/discourse git pull ./launcher rebuild app
  
-- [Our Docker container install](https://github.com/discourse/discourse/blob/master/docs/INSTALL.md) is the only one we officially support. It guarantees easy updates, and all recommended optimizations from the Discourse team.+</code>
  
-- You should get an email notification when new versions of Discourse are released. To update your instance via our easy one click upgrade process, visit [/admin/upgrade](/admin/upgrade).+====== URls ======
  
-- Some other things you might eventually want to set up: +**User Profile:** `https://your-discourse.com/my/preferences` (for preferences), `https://your-discourse.com/my/activity` (for profile activity), `https://your-discourse.com/my/messages` (for messages), and `https://your-discourse.com/my/bookmarks` (for bookmarks).
-   - [Automatic daily backups](https://meta.discourse.org/t/configure-automatic-backups-for-discourse/14855) +
-   - [HTTPS support](https://meta.discourse.org/t/allowing-ssl-for-your-discourse-docker-setup/13847) +
-   - [Content Delivery Network support](https://meta.discourse.org/t/enable-a-cdn-for-your-discourse/14857) +
-   - [Reply via Email](https://meta.discourse.org/t/set-up-reply-via-email-support/14003) +
-   - [Import and Export your data](https://meta.discourse.org/t/move-your-discourse-instance-to-a-different-server/15721) +
-   - [Change the domain name](https://meta.discourse.org/t/how-do-i-change-the-domain-name/16098) +
-   - [Multiple Discourse instances on the same server](https://meta.discourse.org/t/multisite-configuration-with-docker/14084) +
-   - [Import old content from vBulletinPHPbb, Vanilla, Drupal, BBPress, etc](https://github.com/discourse/discourse/tree/master/script/import_scripts) +
-   - A firewall on your server? [Configure firewall](https://meta.discourse.org/t/configure-a-firewall-for-discourse/20584). +
-   - A user friendly [offline page when rebuilding or upgrading?](https://meta.discourse.org/t/adding-an-offline-page-when-rebuilding/45238) +
-   - Embed Discourse [in your WordPress install](https://github.com/discourse/wp-discourse), or [on your static HTML site](https://meta.discourse.org/t/embedding-discourse-comments-via-javascript/31963)+
  
-<code>cd /var/discourse git pull ./launcher rebuild app +- **Categories:** `https://your-discourse.com/c/category_name/category_id` or `https://your-discourse.com/c/category_id`. 
-</code>+ 
 +- **Topics:** `https://your-discourse.com/t/topic_title/topic_id` or `https://your-discourse.com/t/topic_id`. 
 + 
 +- **Specific Posts:** `https://your-discourse.com/t/topic_title/topic_id/post_id`. 
 + 
 +- **Admin Area:** `https://your-discourse.com/admin`
  
 ====== User Operations ====== ====== User Operations ======
Zeile 137: Zeile 154:
 **Mass invite** **Mass invite**
  
-  - One user per line. +  One user per line.One user per line. 
-  - Email is required in the first column, and the email must be valid. +  Email is required in the first column, and the email must be valid.Email is required in the first column, and the email must be valid. 
-  - Any permissions groups you want this user to be a member of should be in second column. For multiple groups, separate group names with a semicolon group_1;group_2;group_3 +  - Any permissions groups you want this user to be a member of should be in second column. For multiple groups, separate group names with a semicolon groupAny permissions groups you want this user to be a member of should be in second column. For multiple groups, separate group names with a semicolon group_1;group_2;group_32;group_3 
-  - Normally invited users arrive at the homepage. If you would rather invited users end up on a specific topic, enter that Topic ID in the third column.+  Normally invited users arrive at the homepage. If you would rather invited users end up on a specific topic, enter that Topic ID in the third column.Normally invited users arrive at the homepage. If you would rather invited users end up on a specific topic, enter that Topic ID in the third column.
  
 ''name@example.com,group_1;group_2,topic_id'' ''name@example.com,group_1;group_2,topic_id''
Zeile 148: Zeile 165:
 Plugin: Data Explorer Plugin: Data Explorer
  
-https://github.com/SidVal/discourse-data-explorer/blob/queries/querys.md+[[https://github.com/SidVal/discourse-data-explorer/blob/queries/querys.md|https://github.com/SidVal/discourse-data-explorer/blob/queries/querys.md]]
  
 ====== Zutritt zum Container ====== ====== Zutritt zum Container ======
- 
 <code> <code>
 +
 docker exec -it e6fe156e2091 /bin/bash docker exec -it e6fe156e2091 /bin/bash
 +
 </code> </code>
  
Zeile 160: Zeile 178:
 ===== Send personal message to all users on a Discourse site ===== ===== Send personal message to all users on a Discourse site =====
  
-https://meta.discourse.org/t/send-a-personal-message-or-email-to-all-users-on-a-discourse-site/229341+[[https://meta.discourse.org/t/send-a-personal-message-or-email-to-all-users-on-a-discourse-site/229341|https://meta.discourse.org/t/send-a-personal-message-or-email-to-all-users-on-a-discourse-site/229341]]
  
 ====== Backup & Restore ====== ====== Backup & Restore ======
-  
-===== Backup ===== 
  
 +===== Backup =====
 <code> <code>
 +
 root@docker2:/var/discourse# ./launcher enter web_only root@docker2:/var/discourse# ./launcher enter web_only
  
Zeile 175: Zeile 193:
  
 Beim Backup übers UI wird ein Link an die Admin Adresse geschickt. Der Link enthält einen passenden token, der zeitlich begrenzt und nur im gleichen Auth Kontext funktioniert. Beim Backup übers UI wird ein Link an die Admin Adresse geschickt. Der Link enthält einen passenden token, der zeitlich begrenzt und nur im gleichen Auth Kontext funktioniert.
- 
  
 ===== Restore ===== ===== Restore =====
  • discourse.txt
  • Zuletzt geändert: 17/07/2025 - 10:13
  • von thommie_netzwissen.de