[prev in list] [next in list] [prev in thread] [next in thread]
List: quanta
Subject: Re: [Quanta] Project file structure
From: Eric Laffoon <sequitur () kde ! org>
Date: 2005-12-19 21:38:58
Message-ID: 200512191338.58370.sequitur () kde ! org
[Download RAW message or body]
On Monday 19 December 2005 12:50 pm, Ben Kujala wrote:
> Hello,
>
> I recently read over the past emails on this list so hopefully this
> isn't redundant. My organization is changing policy on where files can
> be located on our apache web server. The htdocs is in the /srv/www
> directory, but all include files need to be in the
> /usr/local/private/includes directory. We use Suse for both our servers
> and our development environment. On my development system I try to
> match the structure of the live server. What I want to be able to do is
> add files that are not below the project directory to the quanta project
> so I can add my include files. I would also like to be able to use the
> sftp interface in quanta to be able to upload the files. I have been
> able to accomplish something close to this effect with a symbolic link
> in the quanta project directory and the use of two upload profiles for
> the different directories. Of course, I have to remember to mark the
> correct files for the different directories when uploading. And this
> doesn't exactly match the structure of my live server because of the
> symbolic link. Do you have any recommendations on a more elegant way to
> accomplish this?
>
> I do know that there a several ways of accomplishing this outside of
> quanta (i.e. a program like unison), but I would prefer a solution that
> was integrated into quanta. Any recommendations would be greatly
> appreciated :).
>
> Thank you.
>
> Ben
Ordinarily I make my project root one level below your document root so I can
put them in the tree below the document area. In your case it's mandated to
be somewhat nonstandard. A solution would be to use a Project Event Action on
upload to run a script. I think it shouldn't be too difficult to create a
script to use over ssh but if you can use a relocate script on the server
that might be easier. Of course if you can't do it on the server but you can
use ssh-keygen it is pretty easy.
1) upload to project root
2) the script is called with the file name as a paramter
3) the script opens an ssh session and moves the files to their correct
destination
If you have to deal with a tree it's a little more interesting as you'd have
to traverse the tree for files, take the path and graft it onto your include
path and remove the tree after the move operation.
--
Eric Laffoon - Quanta+ Team Leader
http://quanta.kdewebdev.org
_______________________________________________
Quanta mailing list
Quanta@mail.kde.org
https://mail.kde.org/mailman/listinfo/quanta
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic