Should the Umbraco database (schema and data) be regenerated for every deployment?
I have 3 environments (local, stage, and prod). My environments are never in sync, so I was curious when I deploy my local code changes to stage, should I include the local Umbraco db changes as well. I use courier to transfer between environments, so I am not sure if I need to do this. Seems like Umbraco writes to a lot of tables and it would not be a good idea.
Thanks for pointing this out. I was curious if you use the other parts of uSync such as snapshots and ContentEdition. I use courier and it works great. I think I would prefer using uSync to sync databases rather than doing it via scripts (dropping and recreating the db). Seems like Ids would get out of whack.
The other question I had was if I make changes locally and then deploy my changes to a stage server, does uSync import the changes automatically or do I control that?
uSync can import changes automatically, and you can import manually. uSync is configured via /config/uSyncSettings.config this has all the settings in it.
The main settings are on the usync node:
Should the Umbraco database (schema and data) be regenerated for every deployment?
I have 3 environments (local, stage, and prod). My environments are never in sync, so I was curious when I deploy my local code changes to stage, should I include the local Umbraco db changes as well. I use courier to transfer between environments, so I am not sure if I need to do this. Seems like Umbraco writes to a lot of tables and it would not be a good idea.
Thoughts?
Thanks, Saied
Hi Saied,
We are using Umbraco as a Service and uSync, and we have no problems with transferring database changes over environments.
Thanks,
Alex
Hi Alex,
What if I am not using UAAS. Can I just use uSync by itself?
Thanks, Saied
Yes, it's great way to deploy and share database changes between developers. Read more - https://our.umbraco.org/projects/developer-tools/usync/
I just tried installing it and it gave me errors when trying to access doc types, etc. Is it compatible with 7.4.5
I don't think the error is related to uSync, but let's say I make a change to local db. How can I view the sql script changes.
uSync generates xml files with changes to database, you need to move these files from local to dev environment.
Also you have to instal usync on both - local and dev.
Thanks,
Alex
Hi Alex,
Thanks for pointing this out. I was curious if you use the other parts of uSync such as snapshots and ContentEdition. I use courier and it works great. I think I would prefer using uSync to sync databases rather than doing it via scripts (dropping and recreating the db). Seems like Ids would get out of whack.
The other question I had was if I make changes locally and then deploy my changes to a stage server, does uSync import the changes automatically or do I control that?
Saied
uSync can import changes automatically, and you can import manually. uSync is configured via /config/uSyncSettings.config this has all the settings in it. The main settings are on the usync node:
Thanks,
Alex
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.