deployment

Playing around with Sitecore 8 and Web Deploy

This post is to present an approach for storing Sitecore media assets on the file system and how to get synced between CA and CD at your machine by using Microsoft Web Deployment tool, the reference:

  • 3.4.2 Web Deployment
  • 4.12 How to: Configure Web Deployment

Assumptions

Setup Prerequisites

How to set it up

  1. Use SIM to setup 02 new Sitecore 8.2 instances:
    • 01 CA whose site name should be viethoang.ca.local
    • 01 CD whose site name should be viethoang.cd.local
  2. Install Web Deploy v3.6
    • select Complete option
    • swd_13.png
  3. click Start, click Run, type Services and then press ENTER
    • make sure Web Deployment Agent Service is running
    • swd_14.png
  4. CA: edit \App_Config\Sitecore.config to enable storage of media as files rather than database records
    • swd_1.png
  5. CA: remove .example out of \App_Config\Include\WebDeploy.config.example
  6. CA: edit \App_Config\Include\WebDeploy.config and use the built-in Administrator account for deployment
    • swd_2.png
  7. log into CA, upload a media item and make sure it uploaded as file
    • This slideshow requires JavaScript.

       

  8. publish a media item above and hopefully you would see that file in CD’s media folder as well
  9. open the CA’s latest log file, you would see something like this
    • swd_6.png
  10. open CD’s media folder, you would see
    • swd_9.png
  11. we’re done with the Administrator account

How is non-built-in admin account?

  1. create a new admin account, for instance webdeploy_admin
  2. CA: edit \App_Config\Include\WebDeploy.config and use {domain}\webdeploy_admin for web deploy
    • swd_7
  3. log into CA, upload a media item and publish it
  4. open CA’s latest log file, hopefully you get positive info like the one above, otherwise you would see something like this
    • swd_5
  5. per my search, we need to disable User Account Control (UAC) remote restrictions, learn more about it
  6. follow these steps are mentioned in the link above
    • click Start, click Run, type regedit, and then press ENTER.
    • locate and then click the following registry subkey:
      HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
    • if the LocalAccountTokenFilterPolicy registry entry does not exist, follow these steps:
      • on the Edit menu, point to New, and then click DWORD Value
      • type LocalAccountTokenFilterPolicy, and then press ENTER
    • right-click LocalAccountTokenFilterPolicy, and then click Modify
    • in the Value data box, type 1, and then click OK
    • swd_8.png
  7. back to CA and publish something
  8. open CA’s latest log file and CD’s media folder to verify it’s working properly
    • This slideshow requires JavaScript.

       

  9. we’re done with non-built-in admin account

 

From the reference with Love (page 47)

swd_12.png

 

Got issues?

Please send your issues (with screenshots if possible) to viet.hoang.sitecore@gmail.com so that I have a chance to understand your problem and be able to suggest the solution.

Happy Sitecore Playing!

Advertisement

2 thoughts on “Playing around with Sitecore 8 and Web Deploy

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.