WebFaction
Community site: login faq

Hello. We're used to using a service called Beanstalk for managing our subversion repositories. They have a really nice method of automatically deploying the latest version after every commit. This saves us a step while working on the code-base (during development only, of course).

Is there a way to either:

  1. Automatically deploy the files to the webapp directory after every commit? (Possibly using post-commit hooks)

  2. Use the SVN Trunk (and even some branches) as web-app directories directly?

The simplest method is preferred. Thanks!

asked 18 Aug '11, 01:56

kurtis
112
accept rate: 0%

edited 18 Aug '11, 02:21


A post-commit hook is the correct method, a good example is in this stackoverflow post,

http://stackoverflow.com/questions/4483992/svn-post-commit-hook-update-working-copy-depending-of-project-the-commit-belonge

We have documentation that has a basic example for how to use post-commit hooks,

http://docs.webfaction.com/software/subversion.html#send-email-notifications-with-a-post-commit-hook

The code there is for sending an e-mail, to deploy you would use code similar to the stackoverflow post to copy from the svn directory to the webapps directory.

permanent link

answered 18 Aug '11, 02:42

johns
5.3k312
accept rate: 23%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×20
×4

question asked: 18 Aug '11, 01:56

question was seen: 3,965 times

last updated: 18 Aug '11, 02:42

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM