507
edits
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: | ||
==== | ====Execute migration script==== | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
./launcher enter app | ./launcher enter app | ||
# | # 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' | ||
# | # 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> | ||
==== | ====Restaure Discourse backup from command line==== | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
| Line 895: | Line 895: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
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=== | ||