Ask how everyone is combining Linux development

Source: Internet
Author: User
Ask everyone how they combine the Linux development
Project is deployed on the Linux server above, the development process also advocates the use of Linux environment to run the program to test, do not go to the end of the online discovery problem tracking to know is under Windows testing does not consider the problem of Linux, of course, this may be less, The classic problem that I met is that the file name is not paid attention to when the file is not found after the deployment to Linux, there is the file directory read and write permissions are not set to cause some upload function can not work, it is a long time ago, and now all running programs under Linux, so you can find attention

I would like to know the next people deployed on the Linux project, in their own development process is how a way to do it?
1. First I learned that some people are working on their own machines with Wamp and the like to build a Apache/nginx environment on Windows to run their own test programs, to determine the completion of functional development of the company's Linux testing machine for further testing, and finally deployed on-line

2. If you have to use the country Linux environment test in the development of your own machine, that either in Windows to knock code, after knocking the file to the Linux virtual machine, build a host to point to Linux, so access to this host test, I was in this way, I don't know if most of the phper are in this way, or still running under Windows.


My first question is: How much is the need for personal development to run a program under Linux? Because running Linux virtual machine also consumes a bit of memory, the machine more card a bit, the black-hearted boss most pit father's case only gives you 1GB physical memory to do, although our company standard 4G memory, I am 8G, But I also sympathize with the 2G colleague running the program. is the benefit of running personal tests on Linux far more than the cost of reducing the speed of the machine? Seemingly not, some of my colleagues have secretly run back to Windows to do personal tests.

The second question is, if most of the Phper are running under Linux for personal development, do you write good files in Windows, or do you hit code under Linux? Write under Windows, a feature that comes down to implicate five or six files, Every time after a file is written, do a file upload? And if I write code under Linux, I realize that it's not fast to actually knock the code when I'm done with a variety of VIM commands, but sometimes it doesn't seem so convenient, I'm maintaining a class that I want to quickly locate the method I want, but I don't remember spelling. At this time, in addition to the character search to find the method name, but not like the IDE has a class method list directly double-click Jump to that line of fixed focus Ah, so only in Linux with Vim I do not, do not know whether people are really this, also heard that someone like this, seemingly a few

I am of course under the Windows development and then to the Linux run, here also want to know how everyone solves this file transfer problem, in fact, the method is a lot of, ancient samba,ftp/sftp,ssh, and I was using mount, I tried to change it. Once FTP passes the specified file, switching Windows is too frequent and cumbersome.
So now it's the D:/dev/project directory under shared windows and named Project
Create a Windows user test, password test
Mkdir/var/www/project in Linux.
Mount-t cifs-o user=test,pass=test,rw,uid=linux User's Uid,gid=linux group GID//192.168.1. Physical machine/project/var/www/project
Of course,/etc/rc.local also wrote the Mount command.
In this way, the implementation of the modified files under Windows, Linux immediately sync the past, do not know that everyone is not playing, or really use FTP to drag files over and over again, the disadvantage is that the physical machine a little bit of hardware performance bar, but in fact, even if this does not necessarily easy to find read and write permissions caused by the problem, is closer to the online environment more peace of mind developed

------Solution--------------------
Directly in Windows development Ah, you know some problems with Windows to avoid it, Windows Development Direct SVN, test environment can be deployed to Linux, directly svn up can be used.
------Solution--------------------
Write files directly under Linux. If the server is a Linux client is win then use FTP.
------Solution--------------------
window development, through the Svn,git submitted to the server, under window development, need to pay attention to window and Linux under the case, permissions and a series of problems, if it is rented server or VPS, You can upload the window file to the server via FTP.
------Solution--------------------
There are also IDE development tools available under Linux and run smoothly than under win. This specific deployment method depends on your working environment, not the same. At the server VIM is sometimes forced ... Who wants to use that vim to knock the code ...
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.