Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ bats:
./scripts/run-app.sh "31.0.8" 1
bats --verbose-run --timing --trace ./tests/bats

# Complete production like but static Nextcloud and app setup
.PHONY: prod
prod: oc
./scripts/run-app.sh "31.0.8" 1

# Same as clean but also removes dependencies and build related folders
.PHONY: distclean
distclean: clean
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ make npm

### Available Make targets

- make prod
- Builds the app for production and deploys a production Nextcloud instance with the app inside. Sets everything up. Nextcloud on http://localhost:8080 and SMTP testing on http://localhost:8081. Code changes are not automatically picked up; you need to rebuild the container -> run `make prod` again.
- make build
- Fetches PHP dependencies and builds frontend assets.
- make composer
Expand Down Expand Up @@ -201,7 +203,7 @@ docker stop nextcloud-container || true
- Re-run make local to rebuild and restart the environment.

Notes:
- SMTP testing (smtp4dev) is available when using the Docker Compose-based test setup; it listens on http://localhost:8081. The simple make local flow runs a single Nextcloud container on port 8080.
- SMTP testing (smtp4dev) is available when using make target `make prod`; it listens on http://localhost:8081. The simple `make local` flow runs a single Nextcloud container on port 8080.
- The helper script scripts/run-app.sh orchestrates CI and test flows; for local development, stick to the Make targets above.

### Useful commands
Expand All @@ -217,7 +219,7 @@ Notes:

### Smtp4Dev

When developing locally, SMTP4Dev is launched on port 8081 to simulate sending emails through the app.
When developing locally, SMTP4Dev is launched on make target `make prod` on port 8081 to simulate sending emails through the app.

For more information about Smtp4Dev, please refer to the [official README](https://github.com/rnwood/smtp4dev/blob/master/README.md).

Expand Down