Which directory to use to install Capistrano

9 views
Skip to first unread message

Happy Roel

unread,
Mar 25, 2014, 8:18:20 AM3/25/14
to capis...@googlegroups.com
I don't understand in which directory I should execute the cap install command.
I have a Magento webshop I want to deploy. On my local machine the code is resided in /var/www/demoshop/. In this directory I have the directories: app, downloader, errors, includes etc. and also the directory: lib.
If I would install Capistrano in this directory, it could cause conflicts because Capistrano also needs a lib directory. So i decided to move all my Magento code in a new directory, called public.
So now it looks like this in /var/www/demoshop/ :
config/
lib/
public/
.git
.gitignore
Capfile

If I deploy my application now, it will also copy the config and lib directies, and the Capfile. I don't think this is right.
Can I configure Capistrano in a way that will only deploy the contents of the public directory?
Or is there another way to achieve what I want?
Thanks in advance!

Lee Hambley

unread,
Mar 25, 2014, 8:37:27 AM3/25/14
to capistrano
Capistrano can be installed anywhere in the project tree, but it will prefer to be in the project root. It will deploy the current Git repository to a server. (including, all the Capistrano files that should be checked in.) you might start a 2nd project with your Capistrano deploy code in, where you refer to the project's repository itself.

Mixing the responsibility of ./lib/ shouldn't be a problem, since any tools that rely on that, should just ignore files they don't recognise.
Reply all
Reply to author
Forward
0 new messages