User:Jtraulle/DiscourseMigration: Difference between revisions

Jump to navigation Jump to search
m
→‎Discourse tips and tricks: Translating into English (what was I thinking when I wrote that ....)
Tag: 2017 source edit
m (→‎Discourse tips and tricks: Translating into English (what was I thinking when I wrote that ....))
Tag: 2017 source edit
Line 878: Line 878:




====Exécuter le script de migration====
====Execute migration script====


<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
./launcher enter app
./launcher enter app
# Installer les dépendances nécessaires aux imports de données (gems)
# Install required dependencies to import data (gems)
su discourse -c 'export IMPORT=1; bundle install --no-deployment --path vendor/bundle --jobs 4 --without test development'
su discourse -c 'export IMPORT=1; bundle install --no-deployment --path vendor/bundle --jobs 4 --without test development'
# Lancer le script d'import
# Run import script
su discourse -c 'export IMPORT=1; bundle exec ruby script/import_scripts/kunena3.rb'
su discourse -c 'export IMPORT=1; bundle exec ruby script/import_scripts/kunena3.rb'
</syntaxhighlight>
</syntaxhighlight>


====Restaurer une sauvegarde de Discourse en ligne de commande====
====Restaure Discourse backup from command line====


<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
Line 895: Line 895:
</syntaxhighlight>
</syntaxhighlight>


Remplacer bien entendu <code>forum-dolibarr-france-2019-08-07-080937-v20190731090219.tar</code> par le nom de la sauvegarde à restaurer.
You must of course replace <code>forum-dolibarr-france-2019-08-07-080937-v20190731090219.tar</code> by the backup filename to restore.


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

Navigation menu