Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transitionning from CodiMD to HedgeDoc. #55

Closed
ericgaspar opened this issue Nov 22, 2020 · 5 comments
Closed

Transitionning from CodiMD to HedgeDoc. #55

ericgaspar opened this issue Nov 22, 2020 · 5 comments
Labels
help wanted Extra attention is needed

Comments

@ericgaspar
Copy link
Member

ericgaspar commented Nov 22, 2020

A new version 1.7 is coming soon... It is about time to transition this repo.
To do so I have created a new repo : https://github.com/YunoHost-Apps/hedgedoc_ynh that should be good to go as far as naming and links...
@kay0u pointed out the use of a Helper script to migrate files and database from CodiMD to HedgeDoc.
I am wondering if it is worth the effort to implement this...

@ericgaspar ericgaspar added the help wanted Extra attention is needed label Nov 22, 2020
@lapineige
Copy link
Member

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

@Jaxom99
Copy link

Jaxom99 commented Feb 5, 2021

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

@ericgaspar
Copy link
Member Author

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

@Jaxom99
Copy link

Jaxom99 commented Feb 8, 2021

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 😄

@lapineige
Copy link
Member

lapineige commented Dec 18, 2022

@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 ! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants