crater-invoice / crater

Open Source Invoicing Solution for Individuals & Businesses
https://craterapp.com
GNU Affero General Public License v3.0
7.62k stars 1.53k forks source link

I have to reset the database after each deploy #1229

Open grownhacking opened 1 year ago

grownhacking commented 1 year ago

Hello, I deployed crater on heroku like a laravel application with a pgsql database

My issue:

The problem:

My attemps to fix it:

What I understand now:

My attempt:

It feels strange to have an app that you can't maintain by deploying the new code and use the same database, please enlight me on the proper road. Regards

RebelSoftware commented 1 year ago

When deploying make sure you copy storage/app to the new deployment if crater sees the file called database_created it skips the installation process.

Personally I would prefer to see a database check and flag is if the tables are there and the version number is correct skip installation else install or update