Skip to content

First Push Only Options #4

@crisward

Description

@crisward

It would be good to enable some options to only apply on first push / or perhaps if they don't already exist. (as per discussion here dokku/dokku#2269)

Env vars are mentioned as an issue, but dokku-require doesn't specifically support env vars. However having a 'firstpush' option could be useful in general.

Dokku may add something to core for this, but here could be a good place to experiment with the feature.

eg.

"dokku":{
    "plugins":[
      {
        "name":"mariadb",
        "firstpush":true,
        "commands":["mariadb:create mydb","mariadb:link mydb $APP"]
      }
    ]
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions