<div dir="ltr">I don&#39;t really understand why the files are not just stored relative to the files folder rather than the site root.<br><br>That way, changing the location of the files folder would only entail changing the file path inside the administration. <br>
<br>When retrieving file paths the function doing that could simply call file_directory_path() and append the filepath from the database. Isn&#39;t this how it should standardly be dealt with, or did I miss something?<br>
<br>AA<br><br><div class="gmail_quote">On Thu, Jul 16, 2009 at 4:40 PM, Earnie Boyd <span dir="ltr">&lt;<a href="mailto:earnie@users.sourceforge.net">earnie@users.sourceforge.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5">Quoting Luc Stroobant &lt;<a href="mailto:lstroobant@gmail.com" target="_blank">lstroobant@gmail.com</a>&gt;:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Clemens Tolboom wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Having a development test acceptance and production environment it&#39;s a<br>
drag when moving the production database and files to an acceptance or<br>
development environment.<br>
<br>
One has to update the files database table and more tables or do<br>
trickery with symlinks to get the site running clean.<br>
<br>
If we could make the filepath in the files table relative to<br>
the /admin/settings/file-system path the real files are relocatable<br>
without pain. Just do a db load and a rsync to get the files and change<br>
the dmin/settings/file-system path.<br>
<br>
What do you think? Did I miss something important?<br>
</blockquote>
<br>
On *nix you can easily workaround this problem by creating your site directory as sites/sitename and adding the actual urls as symlinks<br>
<br>
So you get something as<br>
<br>
directory: mysite<br>
link: <a href="http://www.mysite.com" target="_blank">www.mysite.com</a> -&gt; mysite<br>
link: <a href="http://dev.mysite.com" target="_blank">dev.mysite.com</a> -&gt; mysite<br>
<br>
entries in the files table will always look like sites/mysite/files/file.ext<br>
and are the same for dev and prod...<br>
<br>
</blockquote>
<br></div></div>
And on windows<br>
<br>
junction <a href="http://www.mysite.com" target="_blank">www.mysite.com</a> mysite<br>
junction <a href="http://dev.mysite.com" target="_blank">dev.mysite.com</a> mysite<br><font color="#888888">
<br>
--<br>
Earnie<br>
-- <a href="http://r-feed.com/" target="_blank">http://r-feed.com/</a>           -- <a href="http://for-my-kids.com/" target="_blank">http://for-my-kids.com/</a><br>
-- <a href="http://www.4offer.biz/" target="_blank">http://www.4offer.biz/</a>       -- <a href="http://give-me-an-offer.com/" target="_blank">http://give-me-an-offer.com/</a><br>
<br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Ashraf Amayreh<br><a href="http://aamayreh.org">http://aamayreh.org</a><br>
</div>