Skip to content

Instantly share code, notes, and snippets.

@webbj74
Created December 1, 2011 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save webbj74/1416891 to your computer and use it in GitHub Desktop.
Save webbj74/1416891 to your computer and use it in GitHub Desktop.
Acquia Cloud - SVN Repository Layout (Text Expander Snippet)
Overall Repository Organization
This is your base repository URL:
%fill:repo_url%
Under this path you have three folders to organize your repository:
%fill:repo_url%/trunk
%fill:repo_url%/tags
%fill:repo_url%/branches
We recommend that active website development occur within "trunk". We recommend that stable versions of "trunk" are periodically copied to paths under "tags" (called a snapshot, or tag). We recommend that advanced SVN repository workflows utilize paths under "branches" as needed.
Repository Trunk
Under "trunk" there should be a path "docroot". This "docroot" path is where the Apache "DocumentRoot" will point, if your website is configured to look at "trunk".
%fill:repo_url%/trunk/docroot
"docroot" should contain your Drupal installation:
%fill:repo_url%/trunk/docroot/index.php
%fill:repo_url%/trunk/docroot/install.php
%fill:repo_url%/trunk/docroot/cron.php
%fill:repo_url%/trunk/docroot/robots.txt
%fill:repo_url%/trunk/docroot/.htaccess
%fill:repo_url%/trunk/docroot/sites
%fill:repo_url%/trunk/docroot/includes
%fill:repo_url%/trunk/docroot/ [et cetera]
Repository Tags
When you're ready to publish your development code to your production environment, we recommend you do this by making a tag of your "trunk". This means that you are effectively copying the folder "trunk" to a sub-folder within "tags". We recommend naming the tag based on the date. For example if we did this today (%B %e, %Y), we would copy "trunk" to:
%fill:repo_url%/tags/%Y-%m-%d
This means that your DocumentRoot for this tag is:
%fill:repo_url%/tags/%Y-%m-%d/docroot
And your Drupal installation will be below that:
%fill:repo_url%/tags/%Y-%m-%d/docroot/index.php
%fill:repo_url%/tags/%Y-%m-%d/docroot/install.php
%fill:repo_url%/tags/%Y-%m-%d/docroot/ [et cetera]
The Workflow page for your Acquia Cloud site provides a GUI to copy "trunk" to a new path under "tags", and automatically point your production environment the docroot path within that tag.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment