User:Jtraulle/DiscourseMigration: Difference between revisions

→‎Discourse tips and tricks: Add info about restoring a backup through command line & running import script
(→‎Permalinks: Add info about permalink generation)
Tag: 2017 source edit
(→‎Discourse tips and tricks: Add info about restoring a backup through command line & running import script)
Tag: 2017 source edit
Line 851: Line 851:
Add an Unreplied tab to the navbar : [https://meta.discourse.org/t/reply-reminder-remind-users-to-reply-to-new-users-topics-with-zero-replies/42644/2]
Add an Unreplied tab to the navbar : [https://meta.discourse.org/t/reply-reminder-remind-users-to-reply-to-new-users-topics-with-zero-replies/42644/2]


====Exécuter le script de migration====
<syntaxhighlight lang="bash">
./launcher enter app
su discourse -c 'bundle exec ruby script/import_scripts/kunena3.rb'
</syntaxhighlight>
====Restaurer une sauvegarde de Discourse en ligne de commande====
<syntaxhighlight lang="bash">
./launcher enter app
su discourse -c 'bundle exec ruby script/discourse restore forum-dolibarr-france-2019-08-07-080937-v20190731090219.tar'
</syntaxhighlight>
Remplacer bien entendu <code>forum-dolibarr-france-2019-08-07-080937-v20190731090219.tar</code> par le nom de la sauvegarde à restaurer.


===Docker tips and tricks===
===Docker tips and tricks===