This is a discussion on Do you have a local test environment? within the Server / Technical Administration Tips and Queries forums, part of the Webmaster Help category; Sparks, is Subversion useful for managing PHP projects? I have always just edited the files and occasionally saved back-ups but ...
| |||||||
| Register | Forum Rules | FAQ | Donate | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Notices |
View Poll Results: Do you have a local testing environment? | |||
| Yes | | 29 | 96.67% |
| No | | 1 | 3.33% |
| No comment | | 0 | 0% |
| Voters: 30. You may not vote on this poll | |||
| LinkBack | Thread Tools | Display Modes |
| |||||
| Sparks, is Subversion useful for managing PHP projects? I have always just edited the files and occasionally saved back-ups but I'd like to move away from that and have better versioning, would this be productive and easy enough to set up with subversion? |
| ||||
| david, it's what we use here for PHP projects. And it's what I use to keep my firefox bookmarks synced between machines, and as a /skeleton for my .cshrc and such files between different machines, and what I store my PhD thesis in, and where I'm doing the development of my hobby projects, and... Yes, for what you're talking about, it's fine. It works best if there's a server that you can run the subversion daemon on, especially if there's more than one of you working, but even if it's just local, it's still good. There's also a win32 svn client called TortiseSVN that's free and well-integrated, that's what I use on the win32 machines I have to use. |
| |||||
| Thanks Sparks, I spent a while yesterday and now have a local subversion and TortoiseSVN which seem to be working very nicely. Though I actually find command line easier alot of the time, as I imagine alot of peope do. |
| ||||
| Run all my sites locally for development/testing then upload to a staging server for client review and approval. Then deploy to the live server. Local environment: OS X / Apache 1.3 / PHP / MySQL / Ruby on Rails etc Have been playing with Capistrano of late and it really makes deployment a sinch. Nifty little program. Version control is an absolute must imo. I've got subversion running off a crappy old 486 in my apartment, using my NTL connection and dyndns.org I'm using SmartSVN for a GUI client. |
| ||||
| Hmm, this looks interesting ... *scarpers off to check out dyndns* |
| ||||
| Thanks! If I understand it correctly it should be handy enough, but i'll get back to you if I run into trouble. |
| ||||
| Just a question for you ... how secure is this? I managed to set up it, although I had to do some pricking around with host files etc, so now the address resolves to my apache install homepage. What are the chances of someone being able to gain access to other areas of my PC?? (newbie question I know!) Also, do you know if it's possible to get the url to resolve to a specific folder without changing the apache document root? (i'd still like to be able to access my apache homepage via //localhost for example) |
| ||||
| Hi Enzo, Well it will be as secure or insecure as your apache configuration If you haven't already, at the very least you'll want to password protect your repository - I'm using basic authentication which is sufficient for my needs, but you could go further and look into using SSL if you want to encrypt the connection. Regarding using a specific subdirectory for your repository, while keeping your default apache homepage, I have the following location configuration in my apache config. <Location /svn> DAV svn SVNPath /path/to/your/repository/ AuthType Basic AuthName "Restricted Access" AuthUserFile /path/to/your/password/file Require valid-user </Location> So I access my repository from http://my.site.address/svn/ Note that that location configuration includes basic authentication. It's the first two lines that set the url to your repository. Hope that helps. |
| Tags |
| environment, local, test |
| Thread Tools | |
| Display Modes | |
|
|
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Local Weather Widget | blacknight | Forum Feedback, Development and Competitions | 17 | 17-12-2006 05:20 PM |
| ID a Hosting environment | EdenWeb | Webmaster Discussion | 13 | 11-11-2006 04:19 PM |
| Irish ISP Test - New look | blacknight | Site Reviews / Announcements | 1 | 16-05-2006 09:55 AM |
| Provider Local Registry | mowd | Webmaster Discussion | 1 | 14-04-2006 09:59 AM |
| Local Development Environment | blacknight | Webmaster Discussion | 7 | 03-02-2006 11:55 AM |
| ||||||||
| | ![]() | |||||||