vito-go / mywords

背单词神器。 输入一个英语或双语文章的网址,本工具将自动提取文章中所有单词及其所在句子,对文章单词进行去重、统计汇总。你可以过滤筛选只显示出你不认识的单词。作为一款开源字典平台工具,它将成为您英语学习的得力助手。
http://vitogo.tpddns.cn:18960/web/
MIT License
192 stars 23 forks source link

【功能需求】将web部署linux的数据和配置文件,放在运行文件所在文件夹,避免免费的云服务器无法取得mkdir权限 #17

Closed aiyou9 closed 5 months ago

aiyou9 commented 5 months ago

.pid文件,自行设置,有的免费服务器不给写入 image

vito-go commented 5 months ago

You can use "rootDir" command line param to specify the program data directory.

./mywords-web-linux -h

output:

Usage of ./mywords-web-linux:
  -dictPort int
        dict port (default 18961)
  -port int
        http server port (default 18960)
  -rootDir string
        root dir (default "/home/vito/.local/share/com.example.mywords")

For example:

./mywords-web-linux  -rootDir ./mywords-data

If the "rootDir" directory does not exist, it will be created. As for the directory permission, you can create it first. The "rootDir" will store not only the ".pid" file, but also all the program data, for example, articles, dicts, and leaning records and so on.

aiyou9 commented 5 months ago

great it work

my test site can run in a free cloud with 100mb space