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 packageapache
Add an index fileproject.phar
That'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
~5s
Left 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 packageapache
Add an index fileproject.phar
That'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
~5s
Left 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 ....