I want to move the media folder to a different location, so that when I deploy it's not in the way, and there's no way it can get accidentally "trashed".
Usually I will backup/move the live media folder before a deploy. Then you can just copy the files back in to the media folder once the deploy is complete.
Did anyone found a way to relocate the media folder in Umbraco as this is something I'd like to do too. With other CMS products this can usually be specified in the configuration, but I can't find anything in Umbraco's config regarding this . . .
Brilliant - thanks Jeroen !! This is exactly what I was after.
Why isn't this referenced in any of the documentation regarding load-balancing Umbraco as this gets around the problem of having to replicate the media folder between servers - just point each server at the same UNC share, or am I missing something . . .
Setting a different location for the media folder in the appsettings section of the web.config works perfectly.
Another option would be to create a virtual folder called 'media' for your website in IIS, and then point it to the physical location of where your media folder is located on disk. The virtual folder wont interfere with any new code deployments or anything.
Moving the media folder
Hi,
I want to move the media folder to a different location, so that when I deploy it's not in the way, and there's no way it can get accidentally "trashed".
Anyone know the best way to do this?
Thanks!
-Evan
Usually I will backup/move the live media folder before a deploy. Then you can just copy the files back in to the media folder once the deploy is complete.
Ah yeah, I think a more fool proof way is to point the media folder to a different root directory.
This would also be good, because then we could share a media folder across DEV and CI environments (who share the same DB).
Do you know if there's anyway to do this? Or does anyone?
How rude of me - I forgot to say thanks for the info Chris :)
I don't know anyway to set this up in Umbraco, but you could look at syncing the folders using one of the following:
- http://foldershare.com/
- http://www.microsoft.com/downloads/en/details.aspx?familyid=C26EFA36-98E0-4EE9-A7C5-98D0592D8C52&displaylang=en
- http://www.dropbox.com/
Cheers,
Chris
Ah cheers Chris. That' s a good idea.
Thanks a lot, I'll check out those apps.
Hi,
Did anyone found a way to relocate the media folder in Umbraco as this is something I'd like to do too. With other CMS products this can usually be specified in the configuration, but I can't find anything in Umbraco's config regarding this . . .
Many thanks,
Chris
There is an appsetting in which you can let your media point another folder. Read more about it here: http://our.umbraco.org/wiki/reference/webconfig/additional-umbraco-specific-appsettings.
Jeroen
Brilliant - thanks Jeroen !! This is exactly what I was after.
Why isn't this referenced in any of the documentation regarding load-balancing Umbraco as this gets around the problem of having to replicate the media folder between servers - just point each server at the same UNC share, or am I missing something . . .
Setting a different location for the media folder in the appsettings section of the web.config works perfectly.
Another option would be to create a virtual folder called 'media' for your website in IIS, and then point it to the physical location of where your media folder is located on disk. The virtual folder wont interfere with any new code deployments or anything.
is working on a reply...