Last active
December 19, 2015 01:39
-
-
Save dergachev/5877262 to your computer and use it in GitHub Desktop.
Revisions
-
dergachev revised this gist
Jun 27, 2013 . 1 changed file with 6 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -30,8 +30,7 @@ another as a git submodule. ## Idea 2: Berksfile and Vagrantfile are added to project root. The project structure is as follows: - site - index.php @@ -44,3 +43,8 @@ Drupal projects): The copy command would be as follows cp -R /vagrant /var/shared/sites/cooked.drupal This requires exposing a chef attribute for VHOST_ROOT, which is where apache would serve from. In this case, it would be '/var/shared/sites/cooked.drupal/site'. Keep in mind that we don't want to hardcode /vagrant anywhere in the cookbook. -
dergachev revised this gist
Jun 27, 2013 . 1 changed file with 17 additions and 14 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,18 +2,13 @@ We're exploring alternative layouts for the vagrant-drupal repo structure. ## Idea 1: project sub-repo Assuming we want to keep Vagrantfile and Berksfile in git, and assuming that we have an existing Drupal project repo, the layout will be as follows: - project - site - db - scripts @@ -22,16 +17,20 @@ project repo, all your drupal projects will look like: - Vagrantfile - .git The copy command will look as follows: cp -R /vagrant/project /var/shared/sites/cooked.drupal In this case there needs to be another attribute pointing to Drupal root in deployment directory (or equivalently in the [project] folder). This is problematic because Vagrantfile and Berksfile cannot be added to the project repo without creating a new repo merging the two `.git`s, or adding one to another as a git submodule. ## Idea 2: Berksfile and Vagrantfile are added to project root. The vagrant root directory would look like this (assuming a specific directory structure of Drupal projects): - site @@ -41,3 +40,7 @@ Drupal projects): - Vagrantfile - Berksfile - .git The copy command would be as follows cp -R /vagrant /var/shared/sites/cooked.drupal -
dergachev renamed this gist
Jun 27, 2013 . 1 changed file with 5 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,10 @@ # vagrant-drupal repo structure We're exploring alternative layouts for the vagrant-drupal repo structure. ## Idea 1: project subdirectory cp /vagrant/project DEPLOY_DIR -
dergachev revised this gist
Jun 27, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ # vagrant-drupal repo structure ## IDEA-1 : project subdirectory/subrepository? -
dergachev revised this gist
Jun 27, 2013 . 1 changed file with 15 additions and 15 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -9,14 +9,14 @@ root in deployment directory (or equivalently in the [project] folder). if you decide to keep the Vagrantfile in your Drupal project repo, all your drupal projects will look like: - Project - site - db - scripts - .git - Berksfile - Vagrantfile - .git This is problematic because Vagrantfile and Berksfile cannot be added to the project repo without creating a new repo merging the two `.git`s, or adding one to @@ -30,10 +30,10 @@ The vagrant root directory would look like this (assuming a specific directory structure of Drupal projects): - site - index.php - db - scripts - Vagrantfile - Berksfile - .git -
dergachev revised this gist
Jun 27, 2013 . 1 changed file with 4 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ # Project repo structure for vagrant-drupal ## IDEA-1 : project subdirectory/subrepository? @@ -24,8 +24,9 @@ another as a git submodule. ## IDEA-2 : Berksfile and Vagrantfile are added to project root. cp -R /vagrant DEPLOY_DIR The vagrant root directory would look like this (assuming a specific directory structure of Drupal projects): -
dergachev revised this gist
Jun 27, 2013 . 1 changed file with 38 additions and 27 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,27 +1,38 @@ # Drupal project repository structure for vagrant-drupal ## IDEA-1 : project subdirectory/subrepository? cp /vagrant/project DEPLOY_DIR In this case there needs to be another attribute pointing to Drupal root in deployment directory (or equivalently in the [project] folder). if you decide to keep the Vagrantfile in your Drupal project repo, all your drupal projects will look like: - Project - site - db - scripts - .git - Berksfile - Vagrantfile - .git This is problematic because Vagrantfile and Berksfile cannot be added to the project repo without creating a new repo merging the two `.git`s, or adding one to another as a git submodule. ## IDEA-2 : Berksfile and Vagrantfile are added to project root. In this case, we copy `/vagrant/.` to deployment directory. The vagrant root directory would look like this (assuming a specific directory structure of Drupal projects): - site - index.php - db - scripts - Vagrantfile - Berksfile - .git -
amirkdv created this gist
Jun 27, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,27 @@ - idea 1 : project subdirectory/subrepository? cp /vagrant/project deployment directory. in this case there needs to be another attribute pointing to Drupal root in deployment directory (or equivalently in the [project] folder). if you decide to keep the Vagrantfile in your Drupal project repo, all your drupal projects will look like: - Project - site - db - scripts - .git - Berksfile - Vagrantfile - .git And this is problematic because Vagrantfile and Berksfile cannot be added to the project repo without creating a new repo merging the two `.git`s, or adding one to another as a git submodule. - idea 2 : Berksfile and Vagrantfile are added to project root. In this case, we copy `/vagrant/.` to deployment directory. The vagrant root directory would look like this (assuming a specific directory structure of Drupal projects): - site - index.php - db - scripts - .git - Vagrantfile - Berksfile