PHP code update to the server, how to ensure the success of the update?

Source: Internet
Author: User
I now use a very stupid method, that is, each time with the FTP tool to the modified PHP or other files to the server, often the network is unstable, to half of the file transfer failed, failed files can not be deleted, can not read, often have a page so long can not open, I would like to ask the professional update of the PHP code method is how?

Reply content:

I now use a very stupid method, that is, each time with the FTP tool to the modified PHP or other files to the server, often the network is unstable, to half of the file transfer failed, failed files can not be deleted, can not read, often have a page so long can not open, I would like to ask the professional update of the PHP code method is how?

The professional is to use the Server Deployment tool, simple and professional method is to use Git and other version tools pull repo and update deployment.

Version control, SVN or Git

Listen to your statement as if it is a virtual space, so that the FTP is very easy to lose files, it is best to hit the compressed package upload and then unzip

Last year Segmentfault was used after refactoring Phar , and each version hits a package, maybe you need this stuff.

Official Document: http://php.net/manual/zh/book.phar.php

Master can try to use the IDE, such as Zend Studio, can be said above the SVN or git, also can open the remote folder via SSH, very convenient.

Use SVN to build a formal library, every time just go to the server svn up a bit

  • Related Article

    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.