adyen-examples / checkoutCreate

An external tool which allows you to build a drop-in integration and make customizations as outlined in the Adyen style sheet.
MIT License
5 stars 6 forks source link

[WIP] Moves sqlite database to a separate volume #113

Closed jlengrand closed 1 year ago

jlengrand commented 1 year ago

To avoid constant removal of the sqlite database, I created a fly.io volume for it.

I have not been able to test it though, so once this is merged we might have surprises. Also worth mentioning that once this is deployed, the currently db will be nuked. What we could do is do a get call on eahc of the ids you know exist in the current db (/loadConfig, and loadStyles), save them somewhere in a text file, given they're just json and then run saveConfig again once the new db is deployed.

With volumes, the db will not be nuked any more. However, it won't be easy to access like a file system, only via the app. If we want this, we might want to switch to an online solution like firebase; but keepingin mind it will require more setup for customers who might want to run this locally.