Setting up a development server

前端 未结 5 1727
梦谈多话
梦谈多话 2021-02-02 02:43

When developing PHP applications, it\'s best to have a server you develop/test on, and then a live server you put everything once it\'s ready.

OK, but how?

If yo

5条回答
  •  粉色の甜心
    2021-02-02 02:53

    You can check all the production server's setup via phpinfo() and copy them on your development environment, no need for them to be on the same provider.

    I usually commit the code to source control, and checkout in the production environment, hiding all the repository information via .htaccess, for example, see here.

    Another (less recommended) option is to just have your master source in the development machine, and once it's ready FTP it up, there are various free tools that will only upload changed files.

提交回复
热议问题