On Sep 12, 2012, at 9:18 AM, Mark Haney wrote:
> My question is, what IS standard practice for this?  


I use a few different methods. One is to make the changes on the dev box, then 
use BBEdit to "Compare" that to the file used on the live server. BBEdit allows 
me to copy just the lines of code I want to the live file and save it.

If I have reason to worry that using FTP to save a file might corrupt a users 
experience with the app then I make a copy of the changed file with a new name 
and upload it to the live server and "rename" it the same as the live file. I 
I'm doing this often I make a script and run it on the server:

        rename("../myCode.pl-new","../myCode.pi") or die("Error 2: $!");

Now, from what I understand, and I am sure others here will correct me if I am 
wrong, this makes the change on the "Atomic level" and it will not interrupt 
your app.


Kindest Regards,

Bill Stephenson
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to