Web developers - Is it better to do development on your local machine or on a remote host?

后端 未结 17 1363
予麋鹿
予麋鹿 2021-01-31 03:07

What are the pro/cons of doing web development on your local machine rather than on a centralized development server? For those that do dev on your local machine, how do you kee

17条回答
  •  鱼传尺愫
    2021-01-31 03:30

    • Always, always develop on a local setup.
    • Always use source control.
    • Always put everything under source control, including the database schema.

    There seems to be a lot people who like to have one central server that everyone uses for development -- I don't really understand why you would prefer to be in a shared environment where people making changes can interrupt your development process.

    In my shop everyone has their own development web server and their own development database (often colocated on the same database server, but their own database). That way they're completely insulated from the other developers and can't interrupt each other.

    When they implement a feature or fix a bug they check in their code and the matching database schema so that it's available to other developers as a complete unit. Releases to the test server or the deployment server are done from a labelled version in the source code repository.

    Stable and sane! I don't see why you'd do it any other way when the development servers are free!

提交回复
热议问题