Version release-the last time I saw 'sf 'using php phar to update the version, I 'd like to ask a few weak questions!

Source: Internet
Author: User
Before asking a question, I roughly read the online tutorials, which are in the fog. Q1: Do I need to perform special processing on the current code when packaging with phar? For example, in my current project, if I use this method to update the official server version, do I need to modify the previous code? Q2: for example, I packaged it into project. phar...

Before asking a question, I roughly read the online tutorials, which are in the fog.

Q1: Do I need to perform special processing on the current code when packaging with phar? For example, in my current project, if I use this method to update the official server version, do I need to modify the previous code?
Q2: for exampleproject.phar, The previous project portal isIndex.php, Then directly modify the packageapacheAdd an index fileproject.pharThat's all?
Q3: how can we seamlessly update versions? Previously, I uploaded the new version of the file first, then modified the name of the previous website folder (such as adding _ 20141030), and then changed the name of the newly uploaded folder to the name of the previous website folder! However, there will also be an approximate3s~5sLeft or right.
Q2 I'll try it after work! You can ignore it!

Reply content:

Before asking a question, I roughly read the online tutorials, which are in the fog.

Q1: Do I need to perform special processing on the current code when packaging with phar? For example, in my current project, if I use this method to update the official server version, do I need to modify the previous code?
Q2: for exampleproject.phar, The previous project portal isIndex.php, Then directly modify the packageapacheAdd an index fileproject.pharThat's all?
Q3: how can we seamlessly update versions? Previously, I uploaded the new version of the file first, then modified the name of the previous website folder (such as adding _ 20141030), and then changed the name of the newly uploaded folder to the name of the previous website folder! However, there will also be an approximate3s~5sLeft or right.
Q2 I'll try it after work! You can ignore it!

Q2: If it is Nginx, you can create a new conf file and use Nginx-c to specify the root file to implement seamless updates ....

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.