Obrigado pela sua ajuda!
Adicionei isto no início do meu guia:
Certifique-se de estar preparado para qualquer situação
É fortemente recomendado, além dos backups locais (salvos no mesmo servidor do fórum), ter uma cópia desses backups em outro servidor ou na nuvem[1].
Também é útil manter uma cópia do arquivo
/var/discourse/containers/app.ymlem um local seguro[2]. Este arquivo opcional é usado em caso de reinstalação do fórum ou migração para outro servidor.Se houver qualquer dúvida séria sobre qualquer coisa, entre em contato comigo (canapin@gmail.com).
Adicionei isto na seção de atualização:
Antes de fazer uma atualização, é altamente recomendável baixar o backup mais recente do seu fórum.
Adicionei isto:
O que fazer se o fórum não funcionar mais?
Reconstruir o fórum resolve muitos problemas e é feito com o mesmo comando de uma atualização pela linha de comando:
/var/discourse/launcher rebuild appE se o fórum ainda não funcionar após uma reconstrução?
Pergunte a mim (canapin@gmail.com) ou poste no fórum de suporte oficial.
Também mencionei ask.discourse.org no final do guia.
Recursos
https://meta.discourse.org : suporte oficial, não hesite em postar lá — membros da comunidade e desenvolvedores são muito prestativos
https://ask.discourse.com : um chatbot treinado em suporte e dados do Discourse, surpreendentemente eficaz para responder perguntas (sim, de verdade)
Texto completo
Make sure you’re prepared for any situation
It is strongly recommended, in addition to local backups (saved on the same server as the forum), to have a copy of these backups on another server or in the cloud[1:1].
It is also useful to keep a copy of the file /var/discourse/containers/app.yml in a secure place[2:1]. This optional file is used in case of a forum reinstallation or a migration to another server.
If there is any serious doubt about anything, contact me (canapin@gmail.com).
Updates
Before doing an update, it is strongly recommended to download the latest backup of your forum.
Via the interface
Do updates when there is an unhappy red smiley in the admin (it means there is an important update to do).
Updates are done via https://yourforum.com/admin/upgrade
They are sometimes done in two steps: you first need to update “Docker_Manager” before being able to upgrade the rest:
Via the command line
Sometimes, an update must be done via the command line (the Discourse admin page will say so if needed).
- Connect to the server via SSH
- Rebuild the forum (a rebuild always updates Discourse) using the following command:
-
/var/discourse/launcher rebuild app - From time to time, after making sure the forum works correctly, it can be useful to remove unused Docker images (leftovers from previous upgrades) to free up disk space:
/var/discourse/launcher cleanup
What to do if the forum no longer works?
Rebuilding the forum fixes many problems and is done with the same command as a command-line update:
/var/discourse/launcher rebuild app
Acho que está bem bom agora e que não estou esquecendo nada importante :slight_smile:
If I installed your forum, your backups are automatically copied to my Google Drive, but ideally in the future they should be saved on a space you are responsible for. We’ll talk about it one day
↩︎ ↩︎It contains the mail server username and password as well as the top-level administrator email (mine, actually). ↩︎ ↩︎
