<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>AV-Looks: How to connect a live site to Subversion</title>
    <link>http://avlooks.net/articles/2006/02/08/how-to-connect-a-live-site-to-subversion</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Watching and Wondering</description>
    <item>
      <title>How to connect a live site to Subversion</title>
      <description>&lt;p&gt;Subversion source control management is a big improvement over &lt;span class="caps"&gt;CVS&lt;/span&gt;.  But newcomers often ask, &amp;#8220;yes, but how do I set up a live website with &lt;span class="caps"&gt;SVN&lt;/span&gt;?&amp;#8221;&lt;/p&gt;


	&lt;p&gt;Here is the step by step procedure.&lt;/p&gt;


	&lt;h3&gt;&lt;span class="caps"&gt;REPOSITORY LAYOUT&lt;/span&gt;&lt;/h3&gt;


	&lt;p&gt;Create the layout you prefer, e.g. /trunk /branches /tags .&lt;/p&gt;


	&lt;p&gt;For discussion of repository layouts, see &lt;a href="http://svnbook.red-bean.com/nightly/en/svn.reposadmin.projects.html#svn.reposadmin.projects.chooselayout"&gt;the Subversion Book&lt;/a&gt;&lt;/p&gt;


&lt;em&gt;remotely on your client&lt;/em&gt;
&lt;pre&gt;
$ svn mkdir -m "adding web root" https://svn1.avlux.net/YOUR_REPOS/homesite
$ svn mkdir -m "adding trunk dir" https://svn1.avlux.net/YOUR_REPOS/homesite/trunk
$ svn mkdir -m "adding branches dir" https://svn1.avlux.net/YOUR_REPOS/homesite/branches
$ svn mkdir -m "adding tags dir" https://svn1.avlux.net/YOUR_REPOS/homesite/tags
&lt;/pre&gt;

	&lt;p&gt;or
&lt;em&gt;locally on the server&lt;/em&gt;&lt;/p&gt;


	&lt;p&gt;&lt;span class="caps"&gt;SSH&lt;/span&gt; into your domain
(you will be prompted to authenticate on each operation):&lt;/p&gt;


&lt;pre&gt;
$ svn mkdir -m "adding web root" https://svn1.avlux.net/YOUR_REPOS/homesite
Authentication realm: &amp;lt;https://svn1.avlux.net:80&amp;gt; avlux.net Subversion Repository
Password for 'avluxnet': &amp;lt;Enter your SSH password&amp;gt;
Authentication realm: &amp;lt;https://svn1.avlux.net:80&amp;gt; avlux.net Subversion Repository
Username: &amp;lt;Enter your SVN username&amp;gt;
Password for 'SVN_user': &amp;lt;Enter your SVN password&amp;gt;
&lt;/pre&gt;

	&lt;h3&gt;&lt;span class="caps"&gt;INITIAL IMPORT&lt;/span&gt;&lt;/h3&gt;


	&lt;p&gt;&lt;em&gt;remotely on your client&lt;/em&gt;&lt;/p&gt;


cd to the root dir of your website on your own box
&lt;pre&gt;
svn import . https://svn1.avlux.net/YOUR_REPOS/homesite/trunk -m 'initial import'
&lt;/pre&gt;

	&lt;p&gt;&lt;em&gt;or locally on the server&lt;/em&gt;&lt;/p&gt;


	&lt;p&gt;&lt;span class="caps"&gt;SSH&lt;/span&gt; into you domain&lt;/p&gt;


	&lt;p&gt;cd to ./rails/ for a Ruby on Rails site,&lt;/p&gt;


or to ./httpdocs/ for a non-RoR site
&lt;pre&gt;
svn import . https://svn1.avlux.net/YOUR_REPOS/homesite/trunk -m 'initial import'
&lt;/pre&gt;

	&lt;h3&gt;&lt;span class="caps"&gt;FIRST CHECKOUT&lt;/span&gt;&lt;/h3&gt;


	&lt;p&gt;&lt;span class="caps"&gt;SSH&lt;/span&gt; into your domain&lt;/p&gt;


	&lt;p&gt;cd to ./rails/ for a Ruby on Rails site,&lt;/p&gt;


or to ./httpdocs/ for a non-RoR site
&lt;pre&gt;
$ svn checkout https://svn1.avlux.net/YOUR_REPOS/homesite/trunk ./
&lt;/pre&gt;

	&lt;h3&gt;&lt;span class="caps"&gt;SUBSEQUENT UPDATES FROM REPOSITORY TO LIVE SITE&lt;/span&gt; (WORKING &lt;span class="caps"&gt;COPY&lt;/span&gt;)&lt;/h3&gt;


	&lt;p&gt;&lt;span class="caps"&gt;SSH&lt;/span&gt; into your domain&lt;/p&gt;


	&lt;p&gt;cd to ./rails/ for a Ruby on Rails site,&lt;/p&gt;


or to ./httpdocs/ for a non-RoR site
&lt;pre&gt;
$ svn update
&lt;/pre&gt;</description>
      <pubDate>Wed, 08 Feb 2006 16:37:00 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:53ffbbbabab44924afc0e34565823080</guid>
      <author>av@avlux.net (Andrew)</author>
      <link>http://avlooks.net/articles/2006/02/08/how-to-connect-a-live-site-to-subversion</link>
      <category>Subversion</category>
      <category>subversion</category>
      <category>howto</category>
      <trackback:ping>http://avlooks.net/articles/trackback/5</trackback:ping>
    </item>
    <item>
      <title>"How to connect a live site to Subversion" by Andrew</title>
      <description>&lt;p&gt;&lt;a href="http://textsnippets.com/posts/show/375" rel="nofollow"&gt;This post&lt;/a&gt; is helpful for setting up a rails app with all the appropriate svn:ignores, which can be a little frustrating without good guidance.  :-)&lt;/p&gt;</description>
      <pubDate>Wed, 12 Mar 2008 17:53:16 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:c85fb888-e35a-4220-be8d-96a713ee60a0</guid>
      <link>http://avlooks.net/articles/2006/02/08/how-to-connect-a-live-site-to-subversion#comment-59</link>
    </item>
  </channel>
</rss>
