You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Documentation/Installation/DeployTYPO3.rst
-73
Original file line number
Diff line number
Diff line change
@@ -36,76 +36,3 @@ General Deployment Steps
36
36
the server's PHP version can be defined in the :file:`composer.json` file
37
37
(e.g. ``{"platform": {"php": "8.2"}}``), so Composer will always check
38
38
the correct dependencies.
39
-
40
-
Deployment Automation
41
-
=====================
42
-
43
-
A typical setup for deploying web applications consists of three different parts:
44
-
45
-
* The local environment (for development)
46
-
* The build environment (for reproducible builds). This can be a controlled local environment or a remote continuous integration server (for example Gitlab CI or Github Actions)
47
-
* The live (production) environment
48
-
49
-
To get an application from the local environment to the production system, the usage of a deployment tool and/or a continuous integration solution is recommended. This ensures that only version-controlled code is deployed and that builds are reproducible. Ideally setting a new release live will be an atomical operation and lead to no downtime. If there are errors in any of the deployment or test stages, most deployment tools will initiate an automatic "rollback" preventing that an erroneous build is released.
50
-
51
-
One widely employed strategy is the "symlink-switching" approach:
52
-
53
-
In that strategy, the webserver serves files from a virtual path :path:`releases/current/public` which consists of a symlink :path:`releases/current` pointing to the latest deployment ("release"). That symlink is switched after a new release has been successfully prepared.
54
-
The latest deployment contains symlinks to folders that should be common among all releases (commonly called "shared folders").
55
-
56
-
Usually the database is shared between releases and upgrade wizards and schema upgrades are run automatically before or
57
-
shortly after the new release has been set live.
58
-
59
-
This is an exemplatory directory structure of a "symlink-switching" TYPO3 installation:
60
-
61
-
.. directory-tree::
62
-
63
-
* :path:`shared`
64
-
65
-
* :path:`fileadmin`
66
-
* :path:`var`
67
-
68
-
* :path:`charset`
69
-
* :path:`lock`
70
-
* :path:`log`
71
-
* :path:`session`
72
-
73
-
* :path:`releases`
74
-
75
-
* :path:`current -> ./release1` (symlink to current release)
76
-
* :path:`release1`
77
-
78
-
* :path:`public` (webserver root, via releases/current/public)
0 commit comments