Ah! Here's what I was missing! Now I'm trying to manually sync the databases:
pg_dump -C -h localhost -U localuser dbname | psql -h remotehost -U remoteuser dbname But I have problem with the port 5432. I already tried to add ip_private to listen_addresses in postgresql.conf, as suggested here: http://stackoverflow.com/questions/19916720/psql-cant-connect-to-postgresql-server-postmaster-on-ip-and-port-5432 But it doesn't help: psql: could not connect to server: Connection refused Is the server running on host "xx.xx.xx.xx" and accepting TCP/IP connections on port 5432? pg_dump: [archiver (db)] connection to database "xxxxxx" failed: fe_sendauth: no password supplied 2014-03-03 16:26 GMT+01:00 Ken Bolton <[email protected]>: > Fabric does not sync the content of the databases. > > Fabric does sync the database schemas! > > > On Mon, Mar 3, 2014 at 8:03 AM, Federico Bruni <[email protected]> wrote: > >> 2014-03-03 13:01 GMT+01:00 Federico Bruni <[email protected]>: >> >> Now I should find out why my real project is failing. Maybe I could start >>> it from scratch step by step and see what happens. >>> >> >> I've just one more test: added a page in my local project and then >> launched 'fab deploy' to send the changes to the server database. >> But nothing happens (I'm sure I've forced the reload of the page). >> >> So I've managed to reproduce my original problem. Local and deployment >> databases are not synced when I launch 'fab deploy'. >> No error if I manually launch 'python manage.py runserver' from the >> virtualenv in the server (after 'sudo supervisorctl stop all'). >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Mezzanine Users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> >> For more options, visit https://groups.google.com/groups/opt_out. >> > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Mezzanine Users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/mezzanine-users/FSCD3RAdLww/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
