Relocating the media folder

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
10/16/2012 3:18:14 PM
Gravatar
Total Posts 3

Relocating the media folder

Is it possible to relocate the media folder for a site?

Thanks,

Chris

 

10/17/2012 10:13:07 AM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Relocating the media folder

I don't believe there is a way to change the name/location of the media folder within mojoPortal, but depending on your web site hosting situation, you may be able to do this by first moving the existing media folder to your desired name/location, then recreating \Data]Sites\[site#]\media as an NTFS directory junction point. That would make the media folder act as an "alias" that transparently links to your desired folder name/location.

As always, back up early and often before experimenting!

I hope that helps,

Jamie

10/17/2012 2:06:42 PM
Gravatar
Total Posts 3

Re: Relocating the media folder

Yes, I know you can create a symbolic link or directory junction for this, but I was hoping for a way to configure it through mojoportal (either through user.config or through the web interface).

I am working on our build and release processes and would like to be able to deploy a mojoportal website by unzipping the website structure (created by our continuous integration server) in place and then updating the IIS config to point to the new wwwroot. This would allow us to have multiple versions of the website on the IIS server at the same time, to facilitate rolling back a release should something go wrong.

The problem is that user data (primarily the media folder, but we face a similar problem with search indexes) is stored within the website folder structure. The rest of the website can live in our source code repository, but these folders are updated through user interaction with the website. I would argue that the media folder is more closely tied to the database than it is the rest of the website structure. As such, it would be nice to be able to configure the media folder location similar to how you would configure your database connection.

Anyways, yes, you can deal with this using a symbolic link, but it complicates the release process by adding an extra step to create the link after deploying the web site structure.

Thanks,

Chris

You must sign in to post in the forums. This thread is closed to new posts.