I am using a very stupid method, that is, every time I use the ftp tool to transfer the modified php or other files to the server, the network is often unstable and the transfer of half of the files fails, failed files cannot be deleted or read, and pages cannot be opened for a long time... I am using a very stupid method, that is, every time I use the ftp tool to transfer the modified php or other files to the server, the network is often unstable and the transfer of half of the files fails, failed files cannot be deleted or read. There are often pages that cannot be opened for a long time. I would like to ask how to update php code professionally?
Reply content:
I am using a very stupid method, that is, every time I use the ftp tool to transfer the modified php or other files to the server, the network is often unstable and the transfer of half of the files fails, failed files cannot be deleted or read. There are often pages that cannot be opened for a long time. I would like to ask how to update php code professionally?
Professional is to use server deployment tools. A simple and professional method is to use git and other version tools pull for repo and then update for deployment.
Version Control, svn or git
It seems like a virtual space, right? In this case, ftp is easy to lose files. It is best to compress the files into a compressed package and then decompress them.
After SegmentFault reconstruction last yearPhar
You may need a package for each version.
Official documents: http://php.net/manual/zh/book.phar.php
The subject can try to use IDE, such as Zend Studio. You can use svn or git mentioned above or use SSH to Open remote folders, which is very convenient.
Use svn to create a formal database. Once svn is up on the server