I created a new target (development - local) with docker with no Database (only Redis).
Then I created a new database on my localhost Postgres (port 5432).
On the new target, I changed the db connection to use the new server and ran the migrations and then imported data from my docker database to this new server.
On Database manager and PGAdmin I can see data and run queries, the problem is with the server actions, it’s returning:
You shouldn’t need to copy any files, just make sure you create a database connection called db in your local development target and let it connect to localhost with the given port. That’s all
Well you haven’t edited your server connect database connection settings - it has “db” as server address instead of localhost. Probably because you copied the docker based connection.
humm…this is what I did! The connection works, I can access the database on Wappler DB Manager and PGAdmin…on server actions, it’s still db as connection but the action doesn’t run, returning 500 error!
We are trying to do the same on a linux machine.
I search over the internet and for the host.docker.internal to work on linux machine, need to add the below instruction on docker compose file