Page 1 of 1

Develop in Windows , deploy in Linux

Posted: Fri Oct 03, 2008 7:32 am
by SParikh
Hello,

I am new to PHP. All my developer's life i have used Windows and MS programming. I have a new job, and the development is done in PHP on Apache server.

My laptop has Windows and I am expected to develop on my laptop and push it on the Linux server.

I am totally blank on this. The way I was thinking is, if I can have access to the test server, i can open the files on my windows environment, edit or develop and push it back on the test server. Please correct me if I am wrong or if I need to take into consideration any details into doing it this way.

I am sure it cannot be that complicated, but any pointers in how to proceed will be highly appreciated.

Thank you all in advance.

-Smita

Re: Develop in Windows , deploy in Linux

Posted: Fri Oct 03, 2008 10:56 am
by Christopher
Install Apache/PHP/etc. on your laptop. Use whatever configuration script/file in your application to set the server name as 'localhost' on your development machine and 'mysite.com' on your production machine.

Re: Develop in Windows , deploy in Linux

Posted: Fri Oct 03, 2008 12:10 pm
by alex.barylski
What is the confusion?

I work on a Windows machine but run the code from a debian box. I use UltraEdit and it's built in FTP support to simply access the files on the remote server, apply changes and save.

It's really that easy.

Or you could install a local copy of XAMPP but messing around with the config files...is a PITA -- not to mention not all code is created equal and Windows and Linux have some differences which might make code break.

Re: Develop in Windows , deploy in Linux

Posted: Fri Oct 03, 2008 12:26 pm
by SParikh
This is my first time using two different servers. And this is exactly what I thought, access the remote server files, update it and push it back. But I wanted to confirm with some expert developers if I am not missing anything.

Thanks

Re: Develop in Windows , deploy in Linux

Posted: Fri Oct 03, 2008 12:47 pm
by califdon
You can work in either of those two ways, each with pros and cons. Just using your Windows laptop to edit and upload to the production server has the advantage of having all the production environment available for your testing (images, support files, databases), but the disadvantage of needing to remain connected, possibility of accidentally trashing current production files, etc. Developing on your Windows laptop with XAMP installed has the advantage of being able to test independent of the production server and being faster (no file transfer time) and not worrying about crashing the server, but the disadvantage of not having exactly the same environment as the production server and having to worry about different file system paths, permissions, differences in case sensitivity of filenames, database logins, etc.

Your choice.