Local test environment (was: [TxMt] Re: SVN?)

Thomas Aylott (subtleGradient) oblivious at subtlegradient.com
Tue Apr 3 00:41:29 UTC 2007


On Apr 2, 2007, at 1:18 PM, Rob McBroom wrote:
> On Apr 2, 2007, at 11:32 AM, Thomas Aylott (subtleGradient) wrote:
>
>> There is nothing wrong with having an environment that requires  
>> uploading files to a dev/test server before you can test them.
>> Other than being really tedious and annoying that is ;)
>
> Yes, and this seemingly immortal thread has brought the annoyance  
> back to the front of my mind and forced me to think about it further.
>
> I just had an idea, but it seems too obvious, so I wonder if it's  
> been tried already or if I'm overlooking something.
>
>   1. Create a local copy of things
>   2. Create a project from the local copy
>   3. Define a project-specific variable like `WHERE_I_CAME_FROM`  
> that contains
>      a remote path that `rsync` understands, like
>      `webserver.foo.com:/blah/htdocs`
>   4. Create a command that runs
>
>         rsync $TM_PROJECT_DIRECTORY $WHERE_I_CAME_FROM
>
> And of course you'd want to add some options to `rsync` and perhaps  
> some additional smarts, but could this work? I fully intend to  
> experiment with this, so if no one chimes in with "been there, done  
> that", I'll share my results.
>
> ---
> Rob McBroom
> <http://www.skurfer.com/>
> I didn't "switch" to Apple... my OS did.

That is almost exactly what I've done before.
Except that I didn't know about rsync back then and just used the  
Transmit bundles "mirror this file" (or whatever it's called) command.

thomas Aylott — subtleGradient — CrazyEgg — sixteenColors
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20070402/45b3645f/attachment.html>


More information about the textmate mailing list