Skip to content

Cannot run db migration with the uberjar #5

@dawranliou

Description

@dawranliou

The current uberjar alias runs the juxt/pack.alpha capsule with the -m option.

According to the doc:

If main is not specified, it will default to clojure.main, meaning it can take options like -m or -r.

What is implied here is that we cannot switch the main namespace once the uberjar is built. For example, we cannot do java -jar <uberjar>.jar -m coast.db create nor java -jar <uberjar>.jar -m coast.migrations migrate because all the args will be passed into server, instead of clojure.main.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions