Release-Last seen ' SF ' using PHP Phar to update the version, weak weak Ask a few questions!

Source: Internet
Author: User

Before asking a cursory look at the next online tutorial, foggy.

Q1: Does using Phar Packaging require special handling of the current code? For example my current project, if in this way to the official server update version, need to modify the previous code no?
Q2: For example, I packed up project.phar , before the project entrance is Index.php , then the package after apache the direct change of the index file to add one on the project.phar line?
Q3: How can I update the version seamlessly? I have previously uploaded the new version of the file, and then modify the previous site folder name (such as add a _20141030), and then change the name of the folder just uploaded to the previous site folder name! But this will also have about 3s ~ ~ 5s about the interruption.
Q2 I'll try it by myself after work! can be ignored!

Reply content:

Before asking a cursory look at the next online tutorial, foggy.

Q1: Does using Phar Packaging require special handling of the current code? For example my current project, if in this way to the official server update version, need to modify the previous code no?
Q2: For example, I packed up project.phar , before the project entrance is Index.php , then the package after apache the direct change of the index file to add one on the project.phar line?
Q3: How can I update the version seamlessly? I have previously uploaded the new version of the file, and then modify the previous site folder name (such as add a _20141030), and then change the name of the folder just uploaded to the previous site folder name! But this will also have about 3s ~ ~ 5s about the interruption.
Q2 I'll try it by myself after work! can be ignored!

Q2, if it is nginx, you can create a new conf, and then use the nginx-c to specify root for seamless update ....

  • 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.