{"id":5,"date":"2007-04-04T00:12:16","date_gmt":"2007-04-04T07:12:16","guid":{"rendered":"http:\/\/squizion.net\/blog\/2007\/04\/04\/web-site-updates-from-subversion\/"},"modified":"2007-04-13T14:50:33","modified_gmt":"2007-04-13T21:50:33","slug":"web-site-updates-from-subversion","status":"publish","type":"post","link":"https:\/\/squizion.net\/blog\/2007\/04\/04\/web-site-updates-from-subversion\/","title":{"rendered":"Web site updates from subversion"},"content":{"rendered":"<p>It&#8217;s not rocket science, but it surprised me just how painlessly I could set up automatic web site updates from my subversion repository. It&#8217;s all documented out there on the net, but this is my chance to record how I manage this site. <\/p>\n<p>My testing ground is a working directory. My published web site is a working directory. When I commit a change, the published site is automatically updated to the latest trunk code. <\/p>\n<ul>\n<li> Set up the published site as a working directory:<br \/>\n<blockquote>\n<p>\nsvn co file:\/\/\/path-to-my-repo my-web-sitedir\n<\/p>\n<\/blockquote>\n<\/li>\n<li> Set up the post-commit hook (in \/path\/to\/my-repo\/hooks) to run &#8216;svn update \/path\/to\/my-web-sitedir&#8217;. There are more details in <a href=\"http:\/\/subversion.tigris.org\/faq.html#website-auto-update\">the subversion FAQ<\/a>\n<\/li>\n<\/ul>\n<p>Of course, none of that fancy version control applies to these blog posts. Posts are in a database and there&#8217;s a plugin for managing versions.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It&#8217;s not rocket science, but it surprised me just how painlessly I could set up automatic web site updates from my subversion repository. It&#8217;s all documented out there on the net, but this is my chance to record how I &hellip; <a href=\"https:\/\/squizion.net\/blog\/2007\/04\/04\/web-site-updates-from-subversion\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/squizion.net\/blog\/wp-json\/wp\/v2\/posts\/5"}],"collection":[{"href":"https:\/\/squizion.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/squizion.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/squizion.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/squizion.net\/blog\/wp-json\/wp\/v2\/comments?post=5"}],"version-history":[{"count":0,"href":"https:\/\/squizion.net\/blog\/wp-json\/wp\/v2\/posts\/5\/revisions"}],"wp:attachment":[{"href":"https:\/\/squizion.net\/blog\/wp-json\/wp\/v2\/media?parent=5"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/squizion.net\/blog\/wp-json\/wp\/v2\/categories?post=5"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/squizion.net\/blog\/wp-json\/wp\/v2\/tags?post=5"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}