ترحيل منتدى Ning إلى Discourse

هل ترغب في الترحيل من Ning إلى Discourse؟ رائع! لنبدأ.

ما هي البيانات التي يمكن استيرادها؟

  • المستخدمين
    • الصور الرمزية (Avatars)
  • الدليل/التصنيفات
  • المواضيع والمنشورات
    • الصور
  • المرفقات

المتطلبات الأساسية

  1. قم بإعداد بيئة تطوير Discourse على macOS، أو Ubuntu أو Debian، أو Windows.

  2. امسح البيانات الموجودة من مثيل Discourse المحلي الخاص بك:

    cd ~/discourse
    rake db:drop db:create db:migrate
    
  3. افتح سكربت استيراد Ning في المحرر الذي تفضله.

  4. استبدل قيمة JSON_FILES_DIR بموقع بيانات التصدير من Ning.

  5. أضف/احذف القيم في ATTACHMENT_PREFIXES بناءً على الدليل/التصنيفات التي ترغب في استيرادها.

إجراء الاستيراد

  1. اعتمادًا على الدليل/التصنيفات التي ترغب في استيرادها، أضف/احذف طريقة import_{entity}.

    على سبيل المثال، لاحظ أن طريقة import_photos ستستورد جميع الصور الموجودة في دليل /ning/export/location/photos عن طريق قراءة ملف ning-photos-local.json.

    استخدم دائمًا ملفات {xyz}-local.json لاستيراد البيانات.

  2. ابدأ عملية الاستيراد:

    cd ~/discourse
    bundle exec ruby script/import_scripts/ning.rb
    
  3. انتظر حتى ينتهي الاستيراد. يمكنك إعادة تشغيل العملية إذا تباطأت بشكل كبير.

  4. ابدأ مثيل Discourse الخاص بك: bundle exec rails server

  5. قم بنسخ احتياطي للبيانات وقم برفعها إلى موقعك الإنتاجي باتباع هذا الدليل.


تهانينا! لقد قمت بنجاح بنقل موقعك من Ning إلى Discourse! :tada:

10 إعجابات

This guide looks very useful for people who’ve used Vagrant to get Discourse running in their environment, however is there possibly a chance of getting a guide on how to use the Ning import script in the Docker environment? If I follow this guide I get errors like “Could not locate Gemfile or ./bundle directory” and rake also doesn’t seem to be installed.

Will the ning.rb script even work in the Docker Discourse setup?

Hi @techAPJ, I’m replying to a very old post. Are you still out there in the ether?

I am looking to migrate our Ning content over to Discourse. We are using the Discourse Hosted plan. Is this migration still possible, or do we need Discourse to be hosted independently?

I am not a developer and would be looking to contract this migration. Any recommendations on resources that could assist? Thank you!

Hi Eric,

Absolutely, it’s possible.

I see you just emailed our team regarding the migration. Someone from our community team will reply you there ASAP. :slight_smile:

3 إعجابات

أود التحدث مع فريق الهجرة أيضًا…