dsuoedtom207012191 2010-12-19 20:06
浏览 64
已采纳

Eclipse + PHP开发/构建/部署环境设置

I'm new to PHP development and was wondering if an automated build/deploy cycle is easy to set up. What I'm thinking is having the PHP project inside Eclipse and being able to start a test instance on a remote test server which I will be controlling from within Eclipse (server start/stop). Also, upon saving changes having them automatically deployed on the server (in a manner similar to jvm's hot deploy). Debugging that remote test server would also be nice! The reason I am thinking of doing this to a remote machine instead of the local one is to have different team members accessing that server in turns from their own PCs.

Please note I am interested in the technicalities of setting up a test environment to assist development not a workflow for deployment.

Thanks in advance.

  • 写回答

1条回答 默认 最新

  • duan39779 2010-12-19 21:07
    关注

    That would slow down development way to much. It's much more efficent if each member have their own local webserver they can test on.

    Introducing a shared server would open up to a lot of problems, for example, how would you handle situations where two members test their code at the same time? You do not want to upload your changes everytime you save a file, that's a lot of wasted time for just data transfer.

    I would recommend setting up a continious integration environment with Hudson and pull your repo at a given interval. This can trigger a test run and verify your code. This way, you'll get notified when your code is broken, and who broke it.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 关于#Java#的问题,如何解决?
  • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算
  • ¥15 想问一下树莓派接上显示屏后出现如图所示画面,是什么问题导致的
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
  • ¥500 火焰左右视图、视差(基于双目相机)
  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化