Skip to content

Commit

Permalink
mockery error in testing mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ildyria committed Jan 29, 2024
1 parent 2e31c05 commit 952b1af
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 0 additions & 2 deletions docs/faq_installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ However, if you want to be able to update your Lychee installation with a click
As far as I know, the minimum set of directories that need to be http-writable is as follows:
```
storage/
storage/
storage/
public/uploads/small
public/uploads/big
public/uploads/thumb
Expand Down
7 changes: 7 additions & 0 deletions docs/faq_troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ This will ensure that the paths and routes are correctly followed.

> {note} Note that the `serve` command should only be used for testing and debuging. It should not be used on a production server.
### I have an error 500, it says 'Class "Mockery" not found', what can I do?

This is because your `APP_ENV` is set to `testing` and you are using production dependencies.
Lychee is trying to mock the requests for test purposes.

To resolve the issue, edit the `.env` file and set `APP_ENV` to something else than `testing`, for example `APP_ENV=production`.

### I have an error 500, what can I do?

Edit the `.env` file and set `APP_DEBUG` to `true`, this will allow the errors to be displayed with the trace.
Expand Down

0 comments on commit 952b1af

Please sign in to comment.