Closed aiyou9 closed 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.
great it work
my test site can run in a free cloud with 100mb space
.pid文件,自行设置,有的免费服务器不给写入