Comments (6)
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.
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.
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.
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.
Got it. Will check re the long start-up time. Thanks, hadn't considered this scenario!
from lute-v3.
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)
- Increased length for URL field needed HOT 4
- Adding/changing image to a term also changes the parent as well as the other terms that share the same parent HOT 4
- Show translation (or part of it) for selected statuses
- Allow use of offline dictionaries or APIs for prepopulation such as Freedict HOT 1
- A better way to sort by difficulty HOT 1
- Term Import IntegrityError HOT 6
- Term Import Internal Server Error after deleting all Tags HOT 4
- Add .m4a audio file support HOT 2
- Extra empty error messages in Language edit error. HOT 3
- BookStats remaining after books have been deleted HOT 1
- Easy way to read messages (short, frequent texts) HOT 3
- Add "clean child duplicate descriptions" tool
- dictionary iframes can steal focus from lute HOT 3
- Not possible to update unknown words using bulk import (without making them known) HOT 3
- Remove whitespace from text item HOT 3
- Change audio file HOT 2
- 3.5.1: Dictionaries no longer loading HOT 7
- Words per page ideas: a) parse text length before import; b) target number of pages HOT 2
- [Enhancement] Improve the new implementation of keyboard focus introduced in 3.5.1 HOT 3
- Add parents to the CLI term export HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lute-v3.