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: README.md
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,9 +5,8 @@ A bash script for zero-downtime Craft CMS deployment to run on production server
5
5
## Usage
6
6
7
7
- Copy the files to your project folder on the server.
8
-
- Rename `.env.example` to `.env` and enter your credentials.
9
8
- Run `chmod +x deploy.sh setup.sh` to set execution permissions.
10
-
- Run `./setup.sh` to create the initial folders.
9
+
- Run `./setup.sh` to create the initial folders and files.
11
10
- Upload `.env` into `shared/`.
12
11
- Upload `storage` folder into `shared/`.
13
12
- Upload `web/.htaccess` into `shared/web/`.
@@ -44,7 +43,7 @@ Creates the necessary `releases`, `shared` and `shared/web` folders on the serve
44
43
- Creates symlinks for shared folders and files.
45
44
- Runs `./craft migrate/all` and `./craft project-config/sync`.
46
45
- Creates a symlink from the `current` folder to the newest release.
47
-
- Deletes old releases and keeps max. 5 releases.
46
+
- Deletes old releases and keeps max. `[DEPLOY_KEEP_RELEASES]` releases.
48
47
- Deletes oldest backup and keeps max. `[DEPLOY_KEEP_BACKUPS]` backups.
49
48
- Restarts PHP to delete symlink cache (optional)
50
49
@@ -62,7 +61,7 @@ When you don't want to spend money on deployment services and tools like Capistr
62
61
63
62
## Roadmap
64
63
65
-
- Add `.env` for better config handling.
64
+
-~~Add `.env` for better config handling.~~
66
65
-~~Delete releases folder if an error occurs during deployment.~~
67
66
-~~Delete not only the oldest release folder, but multiple release folders if there's more than 5 folders (occurs if an deployment fails).~~ (Corrupt folders will be removed if installation fails)
68
67
-~~Integrate `update.sh` scripts into `deploy.sh` and/or create flags.~~
0 commit comments