Micrating from sqlite to postgres #7153
Replies: 4 comments 8 replies
-
Thank you @cellulosa for taking the time to write this out It took a while to setup properly, but I got it working thanks to your documentation. In my config I had to remove the redis pw, and there were some permission issues with the DB, so after fixing this it was all good. I'm running it on a Synology NAS with Docker. |
Beta Was this translation helpful? Give feedback.
-
A fresh DB install won't work btw. There is no data, like no modules for the templates. Update: see comment below. It was already reported. You need to set QUEUE_CONNECTION to sync and then a fresh install works. Installing the dummy data gives errors when running php artisan monica:dummy --force -vvv, for example it contradicts the account creation policy (uppercase/lowercase password) |
Beta Was this translation helpful? Give feedback.
-
@cellulosa - With this environment variable "MAIL_MAILER=log" how were you able to get your email for login? |
Beta Was this translation helpful? Give feedback.
-
@cellulosa, thank you for the guide; it saved me a lot of time. If I could suggest something, it would be to set: By default, the app is requesting assets through HTTP and because of that if you force SSL on the domain, which is what I did, the assets will be rejected. edit: Actually, the register account link is HTTP by default, too, which causes issues. |
Beta Was this translation helpful? Give feedback.
-
Today I migrated from sqlite to postgres to be able to get the meilisearch search working on chandler (discussion). I thought maybe this could be of use to somebody else, so there you go. I am be using
docker-compose
and env variables to make it obvious where things ought to be personalised.brew install pgloader
) and create the following file (namedpgloader-migration.load
):Now you can run the migration with
pgloader pgloader-migration.load
. Hopefully you'll see no errors 🤞Now you can remove the
ports
section of the postgres instance, as monica will be able to communicate with it internally.If you want to make the search work, you either run
docker exec monica php artisan queue:listen --queue=high,low,default
as per docs, or spin a redis instance to manage the queue (what I did). Obiously you also need a meilisearch instance.Here's my full
docker-compose
in case you're interested:Beta Was this translation helpful? Give feedback.
All reactions