Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Nadine Fisch 159 posts 429 karma points
    Apr 25, 2018 @ 07:40
    Nadine Fisch
    0

    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

  • Lewis Smith 211 posts 620 karma points c-trib
    Apr 25, 2018 @ 09:38
    Lewis Smith
    1

    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

    1. Finish off code dev and test
    2. Run through Umbraco health checks
    3. Commit and push changes to an external branch
    4. Copy database into the new version that you will be using for external
    5. Go onto server and clone down the commit and push you just pushed to source control
    6. Check your external website is up and running

    List of my todo list if NOT using source control

    1. Finish off code dev and test
    2. Run through Umbraco health checks
    3. Publish changes into IIS
    4. Copy database into the new version that you will be using for external
    5. Check IIS to see if its working as expected
    6. Go onto server and override current external site (if it exists) making sure you are connected to the correct database
    7. If it works then do the same for live

    Thanks, /Lewis

  • Nadine Fisch 159 posts 429 karma points
    Apr 25, 2018 @ 10:58
    Nadine Fisch
    0

    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?

     - site/wwwroot/App_Plugins/UmbracoForms/[Ii]nstalled
    

    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?

  • Lewis Smith 211 posts 620 karma points c-trib
    Apr 25, 2018 @ 11:59
    Lewis Smith
    1

    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

  • Nadine Fisch 159 posts 429 karma points
    May 02, 2018 @ 04:14
    Nadine Fisch
    0

    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

  • Lewis Smith 211 posts 620 karma points c-trib
    May 02, 2018 @ 12:09
    Lewis Smith
    0

    How did you get on Nadine? Sorry for the late reply, been busy my end!

    Lewis

  • Nadine Fisch 159 posts 429 karma points
    May 02, 2018 @ 12:25
    Nadine Fisch
    0

    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

  • Nadine Fisch 159 posts 429 karma points
    May 03, 2018 @ 00:30
  • Nadine Fisch 159 posts 429 karma points
    May 03, 2018 @ 07:50
    Nadine Fisch
    0

    I downloaded the wwwroot-folder and compared it with my local files. I found many differences:

    enter image description here

    So, I have to move them to my local filesystem. I read that I can ignore APP_Data, but what is with

    • bin (there are some dll-Files)
    • Config

    Can I move them to the production server without concerns?

  • Nadine Fisch 159 posts 429 karma points
    May 03, 2018 @ 13:15
    Nadine Fisch
    0

    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 ;)

Please Sign in or register to post replies

Write your reply to:

Draft