Skip to content

Clean up initialization code for server #426

@horner

Description

@horner

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions