I soon have to deploy a relaunch at an existing system. I made many changes in the data structure (move content, delete content, add content, installed packages, document types, data types, templates etc - simply said: EVERYWHERE)
So we want to make a full deployment on the live server. Can you give me some advices, so I will not forget some steps?
We want to make a copy of the relaunch database and copy the files to the live site.
So mainly I will copy the views-folder, App-Code-folder and the css adjustments . What happens to the package installation? In Wordpress I just need to copy the wp-content-folder, plugins-folder and media content. Which folder are necessary in Umbraco? Sorry, if I already posted a similiar question, but it is still not so clear for me at the moment.
Based on the changes you made you need to do a complete database and codebase update. (ensure you take backups of the existing site before you do this!)
If you have source control on your server, then great! You should be able to just clone down the most up to date version of your codebase and update your database and you will all set to go!
My preference when doing this is to set up the new database and connect a dev version to the live database to ensure everything is working as expected then clone down the latest version of the codebase when youre ready to go live. (If you do not have source control you can just override the current site files with your new ones.)
The best way to test your new files is to publish from visual studio into IIS, run the website on your IIS and check the website.
If it works here, it should work on your server providing the IIS versions match up.
Once youre happy with the IIS version, copy the files that you published into IIS over the existing live site.
I recommend setting up a UAT / Externally facing website first so you can test your website on your server environment before committing to potentially breaking live.
List of my todo list if using source control
Finish off code dev and test
Run through Umbraco health checks
Commit and push changes to an external branch
Copy database into the new version that you will be using for external
Go onto server and clone down the commit and push you just pushed to source control
Check your external website is up and running
List of my todo list if NOT using source control
Finish off code dev and test
Run through Umbraco health checks
Publish changes into IIS
Copy database into the new version that you will be using for external
Check IIS to see if its working as expected
Go onto server and override current external site (if it exists) making sure you are connected to the correct database
Thank you very much, for your answer. Yes, I am using git and there is a automatically deployment after pushing into the "live"-branch. You describe a very clear process and I had the same workflow in my mind.
But I didnt setup the project and I am a little bit nervous, because I dont know if the correct items are setup in source control. Git-Ignore is quite long.
The best way to find out if the gitignore is correct is to build the solution and publish it to IIS, if it works on your local IIS then it should work on a server!
The app plugins folder is added to live products we have, but we dont use UmbracoForms so not 100% sure on that one!
today is the Relaunch, and I am very nervous, because of the templates, data and document type changes. I have the impression here are json files with dependencies inside the filestructure? I think I have seen such files relating to the Umbraco form.
does it really suffice to Copy the whole database and for example only the views-folder.
I do not have a local environment. I only transfer local files to dev-system. I don't like that, but this is the initial project setup and I want to Change that if I have time. so i don't know what relevant data umbraco is also storing on t he filesystem when i am creating document and Data types. maybe there are files in the dev server i don't have locally
But I am still waiting for the approval for the deployment, so I'm trying to get all infos about important dependencies within the umbraco project. I want to make sure that the development will succeed ;-)
PS: I tried to install the project on my local system, but I can't accomplish it, because azure encrypts the data and I cant import them. It is also not possible to connect to the azure database, because the environment prevents it. So I can't test it like you described it above. Challenge accepted :D
because of database deployment problems, it ended that I published the whole file system, but not the APP_Code folder and exluding the web.config files. It is working. Relaunch is done ;)
Relaunch Website
Hi everybody,
I soon have to deploy a relaunch at an existing system. I made many changes in the data structure (move content, delete content, add content, installed packages, document types, data types, templates etc - simply said: EVERYWHERE)
So we want to make a full deployment on the live server. Can you give me some advices, so I will not forget some steps?
We want to make a copy of the relaunch database and copy the files to the live site.
So mainly I will copy the views-folder, App-Code-folder and the css adjustments . What happens to the package installation? In Wordpress I just need to copy the wp-content-folder, plugins-folder and media content. Which folder are necessary in Umbraco? Sorry, if I already posted a similiar question, but it is still not so clear for me at the moment.
Thank you in advance
Hi Nadine,
Based on the changes you made you need to do a complete database and codebase update. (ensure you take backups of the existing site before you do this!)
If you have source control on your server, then great! You should be able to just clone down the most up to date version of your codebase and update your database and you will all set to go!
My preference when doing this is to set up the new database and connect a dev version to the live database to ensure everything is working as expected then clone down the latest version of the codebase when youre ready to go live. (If you do not have source control you can just override the current site files with your new ones.)
The best way to test your new files is to publish from visual studio into IIS, run the website on your IIS and check the website.
If it works here, it should work on your server providing the IIS versions match up.
Once youre happy with the IIS version, copy the files that you published into IIS over the existing live site.
I recommend setting up a UAT / Externally facing website first so you can test your website on your server environment before committing to potentially breaking live.
List of my todo list if using source control
List of my todo list if NOT using source control
Thanks, /Lewis
Thank you very much, for your answer. Yes, I am using git and there is a automatically deployment after pushing into the "live"-branch. You describe a very clear process and I had the same workflow in my mind.
But I didnt setup the project and I am a little bit nervous, because I dont know if the correct items are setup in source control. Git-Ignore is quite long.
For example this statement in gitignore?
And I think I have to transfer also the media files, because they aren't in the source control.
But maybe there are also other items I didn't consider at the moment?
The best way to find out if the gitignore is correct is to build the solution and publish it to IIS, if it works on your local IIS then it should work on a server!
The app plugins folder is added to live products we have, but we dont use UmbracoForms so not 100% sure on that one!
You can also find a copy of a default umbraco file that git uses here: https://github.com/github/gitignore/blob/master/Umbraco.gitignore
Thats what github recommends as a starting point for Umbraco projects.
Thanks, Lewis
today is the Relaunch, and I am very nervous, because of the templates, data and document type changes. I have the impression here are json files with dependencies inside the filestructure? I think I have seen such files relating to the Umbraco form.
does it really suffice to Copy the whole database and for example only the views-folder.
I do not have a local environment. I only transfer local files to dev-system. I don't like that, but this is the initial project setup and I want to Change that if I have time. so i don't know what relevant data umbraco is also storing on t he filesystem when i am creating document and Data types. maybe there are files in the dev server i don't have locally
How did you get on Nadine? Sorry for the late reply, been busy my end!
Lewis
There is at the moment another problem because of price abos in azure. Please have a look here. https://our.umbraco.org/forum/using-umbraco-and-getting-started/91838-deploying-datebase-via-azure
But I am still waiting for the approval for the deployment, so I'm trying to get all infos about important dependencies within the umbraco project. I want to make sure that the development will succeed ;-)
PS: I tried to install the project on my local system, but I can't accomplish it, because azure encrypts the data and I cant import them. It is also not possible to connect to the azure database, because the environment prevents it. So I can't test it like you described it above. Challenge accepted :D
I found some more information about excluding/including folders
https://our.umbraco.org/forum/using-umbraco-and-getting-started/80601-what-is-the-best-approach-to-deploy-umbraco-to-live-production#comment-257871
I downloaded the wwwroot-folder and compared it with my local files. I found many differences:
So, I have to move them to my local filesystem. I read that I can ignore APP_Data, but what is with
Can I move them to the production server without concerns?
because of database deployment problems, it ended that I published the whole file system, but not the APP_Code folder and exluding the web.config files. It is working. Relaunch is done ;)
is working on a reply...