Skip to content

Cannot run db migration with the uberjar #5

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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