mirror of
https://github.com/penpot/penpot.git
synced 2025-08-04 15:18:23 +02:00
✨ Add automatic v2 migration process on startup
This commit is contained in:
parent
b3456d0f7f
commit
c55ceb4bca
5 changed files with 137 additions and 80 deletions
|
@ -24,6 +24,7 @@
|
|||
[app.loggers.webhooks :as-alias webhooks]
|
||||
[app.metrics :as-alias mtx]
|
||||
[app.metrics.definition :as-alias mdef]
|
||||
[app.migrations.v2 :as migrations.v2]
|
||||
[app.msgbus :as-alias mbus]
|
||||
[app.redis :as-alias rds]
|
||||
[app.rpc :as-alias rpc]
|
||||
|
@ -582,6 +583,11 @@
|
|||
(nrepl/start-server :bind "0.0.0.0" :port 6064 :handler cider-nrepl-handler))
|
||||
|
||||
(start)
|
||||
|
||||
(when (contains? cf/flags :v2-migration)
|
||||
(px/sleep 5000)
|
||||
(migrations.v2/migrate app.main/system))
|
||||
|
||||
(deref p))
|
||||
(catch Throwable cause
|
||||
(binding [*out* *err*]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue