mieweb / wikiGDrive

Wiki for Google Shared Drive
15 stars 5 forks source link

Clean up initialization code for server #426

Open horner opened 7 months ago

horner commented 7 months ago

We should make /data not hard-coded. The code right now assumes that you're running in a docker container, unless you have a .env file. We should make the code fail if the work-dir is not available (or ask if you want to make it).

https://github.com/mieweb/wikiGDrive/blame/ede6dea55946cebc41ad26de1e4d94aaccd612b6/src/cli/wikigdrive-server.ts#L64

The older code always made a work dir in the cwd and it was painful to launch and then start the download if you accidentally were in the wrong directory.

horner commented 7 months ago

https://github.com/mieweb/wikiGDrive/blob/ede6dea55946cebc41ad26de1e4d94aaccd612b6/src/cli/wikigdrive-transform.ts#L44