View Full Version : [FIXED] Mistakenly reports that it cannot be deployed in Project Path.
9 Feb 2012, 1:16 AM
I try to deploy my project outside the project path using ../..
But when I deploy, it reports: Deploy directory cannot be within Project Path, which is not true in my opinion.
10 Feb 2012, 12:37 PM
What is your project path?
11 Feb 2012, 10:34 AM
a work around is to set an absolute path here but we should get to the bottom of this. Need more information.
12 Feb 2012, 11:40 PM
I don't think it matters what my path is. ../ is outside it. My directory structure is like this:
You should be able to reproduce with this information.
For now I have set an absolute path.
15 Feb 2012, 8:28 AM
This is perfect. I just wanted to be sure I understood what you were trying to do so I can write some good tests for this use case.
know that ../ isn't always outside of it
../v5 for instance
At the moment I have a very crude method for deciding your not deploying to your src directory.
Working up a fix
15 Feb 2012, 8:49 AM
I get it. (may be split('/') the project and deploy directory into an array then loop through the deploy directory array and pop() the project directory array for each '..' and push() an item for everything else, then check the result and see if your still in the project directory.)
However I found myself now saving the XDS file in the httpdocs/v5 folder, so that I dont have to deploy anymore. I dont mind so much having an XDS file viewable for the world. Or should I mind it?
15 Feb 2012, 1:39 PM
This should make it into next weeks update.
Powered by vBulletin® Version 4.1.5 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.