On Tuesday, January 31, 2012 at 1:25 AM, Hedge Hog wrote:
On Mon, Jan 30, 2012 at 4:18 AM, Nathen Harvey < "> > wrote:You may need to write some custom code to work around this but this might bea good time to revisit the decision to store two separate projects in thesame github repo.If you really need these in the same repo, using git submodules might makemore sense.I case this ever is considered as a feature request.... I'd like toadvance reasons why this setup is sometimes necessary:Think of a service-end stacks and a front-end stack, which have to bequite tightly coupled, without additional staff and in complex setups,it is often easier (keeping to DRY) to have these stacks developed inthe one project. While separate 'projects' for deployment purposes,for every other purpose the look and act as one project.After much wrestling I in github.com/cookbooks I concludedgit-submodules are nice but not well suited everywhere - they are_very_ sensitive/fragile to your workflow and require a painfulworkflow if committing and deploying 20 times a day. My sense is thatsub-modules are suited to the use case that Librarian[0] targets[1] -your stable code. Then Librarian is in every way superior tosub-modules. That still leaves the development process, which if youare using continuous deploy, never has a discrete end.HTH[1] "Librarian is really for pulling in the 50 or so finishedthird-party cookbooks that you're using, not the 1 or 2 cookbooksyou're actively working on."On Sun, Jan 29, 2012 at 2:07 AM, Sachin Sagar Rai < "> >wrote:Hi chef fellas!I've a private repo at github and it has multiple projects in that singlerepo.e.g/shared/microlabs (root of the git repo mirrored using git fromgithub)Following are the 2 projects inside the `microlabs1-subdir`/shared/microlabs/microlabs1-subdir/drupal/shared/microlabs/microlabs1-subdir/radiantI got to install those 2 projects and I'm trying to follow the opscode'sstandard `application` and `database` recipes.Following is the snippet default of the `php` application recipe.deploy_revision app['id'] dorevision app['revision'][node.chef_environment]repository app['repository']user app['owner']group app['group']deploy_to app['deploy_to']action app['force'][node.chef_environment] ? :force_deploy : :deployssh_wrapper "#{app['deploy_to']}/deploy-ssh-wrapper" ifapp['deploy_key']shallow_clone truepurge_before_symlink([])create_dirs_before_symlink([])symlinks({})symlink_before_migrate({local_settings_file_name => local_settings_full_path})endBy default, it will assume the checked-out repo dir as the source. And inmy case, its below 2 dirs from the root of the git repo.But I couldn't find any params that configures/tells to use the innerfolder of the root repo?How to deal with this?-------------------------------------------@millisami~ Sachin Sagar RaiRuby on Rails DeveloperSent with Sparrow--πόλλ' οἶδ ἀλώπηξ, ἀλλ' ἐχῖνος ἓν μέγα[The fox knows many things, but the hedgehog knows one big thing.]Archilochus, Greek poet (c. 680 BC – c. 645 BC)
Archive powered by MHonArc 2.6.16.