Develop in Windows , deploy in Linux

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
SParikh
Forum Newbie
Posts: 5
Joined: Fri Oct 03, 2008 7:26 am

Develop in Windows , deploy in Linux

Post 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
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Develop in Windows , deploy in Linux

Post 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.
(#10850)
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Re: Develop in Windows , deploy in Linux

Post 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.
SParikh
Forum Newbie
Posts: 5
Joined: Fri Oct 03, 2008 7:26 am

Re: Develop in Windows , deploy in Linux

Post 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
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: Develop in Windows , deploy in Linux

Post 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.
Post Reply