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

修改base_dir后,watch进程未生效 #27

Closed
rty813 opened this issue Nov 22, 2024 · 4 comments
Closed

修改base_dir后,watch进程未生效 #27

rty813 opened this issue Nov 22, 2024 · 4 comments

Comments

@rty813
Copy link

rty813 commented Nov 22, 2024

我将base_dir修改为W:/memos后,watch进程日志显示仍然在使用原来的~/.memos路径。
image

image

@rty813
Copy link
Author

rty813 commented Nov 22, 2024

database中存储的路径仍然是老的路径,因此只改配置文件似乎没有用

@arkohut
Copy link
Owner

arkohut commented Nov 22, 2024

If you changed the base_dir do you copy the database.db to the new location? If that is true, it means the original configuration in the database is also moved to the new location. Use command memos lib ls to show current Folders.

@rty813
Copy link
Author

rty813 commented Nov 22, 2024

After I changed the base_dir, I also moved database.db to the new location. But watch process still uses the old path. I checked the folders table in database and found that the path is still the old path.

@arkohut
Copy link
Owner

arkohut commented Nov 22, 2024

If there aren’t many files, you can just copy the screenshots to the new location and reindex.

@rty813 rty813 closed this as completed Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants