Giter Site home page Giter Site logo

Comments (5)

lapineige avatar lapineige commented on May 23, 2024

Ok, then maybe I was a bit too hasty with this PR #54

from codimd_ynh.

Jaxom99 avatar Jaxom99 commented on May 23, 2024

Hi, is there a good migration path from codi_ynh to hedgedocs_ynh ? Is a DB dump/restore enough ?

from codimd_ynh.

ericgaspar avatar ericgaspar commented on May 23, 2024

I dont know so I asked about it in the HedgeDoc Matrix room ... Here is the answer:

don't know if it's still that simple, but yes, it seems for quite a long time this worked. Not sure it still does
https://community.hedgedoc.org/t/my-experience-migrating-from-hackmdio-codimd-to-hedgedoc/245

from codimd_ynh.

Jaxom99 avatar Jaxom99 commented on May 23, 2024

Great, thank you ! I'll let you know how it goes.

EDIT : it kind of worked. I had to sed codimd to Hedgedoc in the dump, to allow the new app to use the database. One thing lost is the upload files (like images) : they are stored in the /var/www/codimd/public/upload , so i should have copied them over.

So the path seems easy :

  1. Export files
  2. Dump the codimd PG database
  3. Remove codimd app
  4. Install hedgedoc app in same domain/path
  5. Stop the service and drop the new hedgedoc PG database
  6. sed the database dump for s/codimd/hedgedoc/g
  7. Create new database 'hedgedoc" and import the modified dump
  8. Copy files over
  9. Restart hedgedoc service 😄

from codimd_ynh.

lapineige avatar lapineige commented on May 23, 2024

@Jaxom99

I had to sed codimd to Hedgedoc in the dump

How do you do that ?

Could you please explain a little further how you do each individual step  ?
In particular:

  1. In which format ?
  2. how do you "sed" it ? What's the command syntax ?
  3. how can we do it ? Any specific parameters ?

Additional question : is the history kept ?
Thank in advance ! :)

from codimd_ynh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.