perl - How can I use subversion to deploy web applications? -
We are a small team of 4 developers working on a web application. We use trac + svn on the shared server for version control and ticket and we are happy and satisfied with it. The same shared server hosts our web application. This application is a Pearl CGI application that uses the CGI :: application, and a common standard number (CPAN) and custom Perl module that is normal (/ usr / lib / perl ...) and installs in some unusual places (/ home / user / lib / perl ..). Although the broader details can be irrelevant, most importantly, that the place / layout of libraries on our development machines is different on that production server we have to be with it in the given form. . Library layout is similar on all development machines, though.
- Code and testing on development machines
-
- Update the code on the appropriate documentation on the server. "
svn export" checkout / commit / update our code - Edit the exported tree to set hands < P> Clearly
- Match library layout on server
- Test applications on live servers, increase tickets for each other
- There should be a better way And hearing from others Those who appreciate better than this, for example, is a way of
svn exportand can fix libraries in an automated way?Thank you for your attention
You should have a script that To do this, which can be run from the local box, I always see something like this:
$ & gt; Copy from source to checkout or $$ working; Convert conversion values to production values in CD / Pearl-PI / CC (i.e. cp output .configure myconfig) $ & gt; Upload to Web Server (rsync / ssh / ftp / etc) $ & gt; SSH $ server migrate_db, set permissions, run the unit test etc. The last one requires SSH access which I always search but everything else can be done locally. You usually have a set of dev config and there is a set of production configurations (or a script to convert from a dev to a production
one step upload always a strong
Comments
Post a Comment