Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Feature Request: Ability to run migrations outside of development mode #156

Closed
slimm609 opened this issue Jan 7, 2018 · 3 comments
Closed

Comments

@slimm609
Copy link
Contributor

slimm609 commented Jan 7, 2018

The ability to run migrations by specifying the NODE_ENV='migrations' or npm run migrations and have it run the migrations, then exit. This would allow for the migrations to be run and then the container exit.

@jeremyjpj0916
Copy link
Contributor

My workaround for this (depending on your dev environment) was a kubernetes job that is simply "deleted" after 3 mins. So I can run kong in development mode and then the job dies off after the hard limit since i know the db migrations will finish much much sooner than 3 mins. Of course you could call that a hack job but it does suffice for peoples needs.

@schrodingersket
Copy link

Would a pull request for this be accepted? I'm also interested in this functionality, and don't at all mind spinning it up.

Thanks in advance!

@pantsel
Copy link
Owner

pantsel commented Jun 8, 2018

@slimm609 , @sashahilton00 , @jeremyjpj0916

this functionality is introduced in Konga 0.11+.

Check https://github.com/pantsel/konga#running-konga

Feel free to reopen the issue if you guys have any probs.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants