User:Jtraulle/DiscourseMigration: Difference between revisions

Jump to navigation Jump to search
m
→‎Execute migration script: Après 20 minutes d'énervement ...
Tag: 2017 source edit
m (→‎Execute migration script: Après 20 minutes d'énervement ...)
Tag: 2017 source edit
Line 884: Line 884:


<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
./launcher enter app
./launcher enter web_only
# Install required dependencies to import data (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 config unset deployment; bundle config set path 'vendor/bundle'; bundle config set without 'test development'; bundle install --jobs 4 --no-deployment"
# Run import script
# 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_dolibarr_de.rb'
</syntaxhighlight>
</syntaxhighlight>
Note :


====Restaure Discourse backup from command line====
====Restaure Discourse backup from command line====

Navigation menu