Skip to content

Commit 666f0f2

Browse files
committed
fix upgrade page
1 parent 1603f2f commit 666f0f2

1 file changed

Lines changed: 44 additions & 41 deletions

File tree

docs/upgrade.md

Lines changed: 44 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -174,60 +174,63 @@ lychee_worker_2:
174174

175175
Follow these steps to migrate from v6 to v7:
176176

177-
1. **Backup Everything**
178-
```bash
179-
# Backup your database
180-
docker exec lychee_db mysqldump -u lychee -p lychee > lychee_backup.sql
177+
#### 1. **Backup Everything**
181178

182-
# Backup your uploads and configuration
183-
cp -r ./lychee ./lychee_backup
184-
```
179+
```bash
180+
# Backup your database
181+
docker exec lychee_db mysqldump -u lychee -p lychee > lychee_backup.sql
182+
183+
# Backup your uploads and configuration
184+
cp -r ./lychee ./lychee_backup
185+
```
186+
187+
#### 2. **Stop Your Current v6 Services**
185188

186-
2. **Stop Your Current v6 Services**
187-
```bash
188-
docker-compose down
189-
```
189+
```bash
190+
docker-compose down
191+
```
190192

191-
3. **Update Your docker-compose.yml**
193+
#### 3. **Update Your docker-compose.yml**
192194

193-
Replace your v6 docker-compose.yml with the v7 configuration. You can find the complete example at: [https://github.com/LycheeOrg/Lychee/blob/master/docker-compose.yaml](https://github.com/LycheeOrg/Lychee/blob/master/docker-compose.yaml)
195+
Replace your v6 docker-compose.yml with the v7 configuration. You can find the complete example at: [https://github.com/LycheeOrg/Lychee/blob/master/docker-compose.yaml](https://github.com/LycheeOrg/Lychee/blob/master/docker-compose.yaml)
194196

195-
4. **Reorganize Your Volume Data** (if needed)
197+
#### 4. **Reorganize Your Volume Data** (if needed)
196198

197-
If your current directory structure doesn't match the new volume mounts, reorganize:
198-
```bash
199-
# The uploads directory structure should remain compatible
200-
# Ensure your uploads are in ./lychee/uploads/
201-
```
199+
If your current directory structure doesn't match the new volume mounts, reorganize:
200+
201+
```bash
202+
# The uploads directory structure should remain compatible
203+
# Ensure your uploads are in ./lychee/uploads/
204+
```
202205

203-
5. **Update Environment Variables**
206+
#### 5. **Update Environment Variables**
204207

205-
Key changes to your environment configuration:
206-
- If using workers: Add `QUEUE_CONNECTION=database` or `QUEUE_CONNECTION=redis`
207-
- If using workers: Add `LYCHEE_MODE=worker` to worker service only
208-
- Review other environment variables for any deprecated options
208+
Key changes to your environment configuration:
209+
- If using workers: Add `QUEUE_CONNECTION=database` or `QUEUE_CONNECTION=redis`
210+
- If using workers: Add `LYCHEE_MODE=worker` to worker service only
211+
- Review other environment variables for any deprecated options
209212

210-
6. **Start v7 Services**
211-
```bash
212-
docker-compose up -d
213-
```
213+
#### 6. **Start v7 Services**
214+
```bash
215+
docker-compose up -d
216+
```
214217

215-
7. **Run Migrations**
216-
```bash
217-
docker exec lychee php artisan migrate
218-
```
218+
#### 7. **Run Migrations**
219+
```bash
220+
docker exec lychee php artisan migrate
221+
```
219222

220-
8. **Verify Installation**
223+
#### 8. **Verify Installation**
221224

222-
Check that all services are running:
223-
```bash
224-
docker-compose ps
225-
```
225+
Check that all services are running:
226+
```bash
227+
docker-compose ps
228+
```
226229

227-
Check logs for errors:
228-
```bash
229-
docker-compose logs -f lychee
230-
```
230+
Check logs for errors:
231+
```bash
232+
docker-compose logs -f lychee
233+
```
231234

232235
### Troubleshooting
233236

0 commit comments

Comments
 (0)