Giter Site home page Giter Site logo

Comments (6)

jzohrab avatar jzohrab commented on August 27, 2024

I'm not clear on what the request here is.

  • Do you mean "edit the config file," instead of "edit the database file"?
  • There's no config file required for the python code, unless you're specifically configuring it for some reason (which is possible, but not required). Actually, there is no docker config, I'm assuming you're talking about the docker compose, which is up to the user to create.
  • are you talking about the config from v2 to v3?

Perhaps you could reply with an example of the config you want converted ... but this is going to be an error-prone script which will be useful only in a very small number of cases, so I'm unlikely to do it myself. :-) As nice/slick as this request is, I'm going to push this small effort on to the users.

from lute-v3.

PsychoThinker avatar PsychoThinker commented on August 27, 2024

I will try to explain it with an example.

I'm talking about the scenario of migrating from a lute v3 python installation to a v3 docker-compose installation (actually in my case it's just docker). I thought the only thing I had to do was unpack my backup into the data directory, but that wasn't the case. The "backup directory" parameter cannot be changed from the user interface (at least not when running lute from docker) - I had to restore the original values for "backup directory" and also "MECAB_PATH environment variable" parameters in the lute.db file.

Then I realized that I could set this second parameter using the user interface, but I still think it would be nicer to detect that migration has happened and set proper values for these parameters.

But as I said, it wasn't a big deal for me (and I already have a working migrated installation).

from lute-v3.

jzohrab avatar jzohrab commented on August 27, 2024

Ah yes, I see. With Docker, there's no real "config file", you just have to create a docker compose file to mount host folders to the container. There's no real correspondence between the two setups. But I see what you mean about the backup folder ... with docker, it has to be set to a particular value, to ensure that the dirs are mounted. ... but then again, really users could map it anywhere, if they know what they're doing.

Perhaps the right thing to do in Docker is just to reset those settings to the correct values for Docker, overwriting what you might have set. Does that sound right? No matter what I do, it feels like it could be messy -- but perhaps is good enough.

from lute-v3.

PsychoThinker avatar PsychoThinker commented on August 27, 2024

Perhaps the right thing to do in Docker is just to reset those settings to the correct values for Docker, overwriting what you might have set. Does that sound right?

I think this would solve the problem.

It seems to me that if you try to run docker with the lute.db file that was previously used with python (without resetting those parameters), the process of starting lute is very long.

from lute-v3.

jzohrab avatar jzohrab commented on August 27, 2024

Got it. Will check re the long start-up time. Thanks, hadn't considered this scenario!

from lute-v3.

jzohrab avatar jzohrab commented on August 27, 2024

Old title was "Feature request: Add option to migrate from python config to docker", which wasn't the real issue. This is a good suggestion that should be a quick fix. Also, check the startup time!

from lute-v3.

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.