Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change: update readme and tests with new dev addon command #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ This addon sets up a n8n instance for your DDEV project. n8n is a free and open

## Installation

1. Run `ddev get netz98/ddev-n8n` to install the addon in your exiting ddev project.
1. Run `ddev add-on get netz98/ddev-n8n` to install the addon in your exiting ddev project.
2. `ddev restart` to restart your project.

**Note:** For older versions of DDEV (prior to v1.23.5), use `ddev get netz98/ddev-n8n` instead of `ddev add-on get`.

## Usage

After installation, you can access the n8n instance by visiting `https://<yourname>.ddev.site:5678` and using the username and password you set.
Expand Down Expand Up @@ -60,4 +62,3 @@ It's disabled by default.

You can enable it by changing the variable `N8N_BASIC_AUTH_ACTIVE` in `.ddev/docker-compose.n8n.yaml` to `true`.
The username and password can be configured in the same file.

4 changes: 2 additions & 2 deletions tests/test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ teardown() {
set -eu -o pipefail
cd ${TESTDIR}
echo "# ddev add-on get ${DIR} with project ${PROJNAME} in ${TESTDIR} ($(pwd))" >&3
ddev get ${DIR}
ddev add-on get ${DIR}
if ! ddev restart; then
ddev logs -s n8n
fi
Expand All @@ -37,7 +37,7 @@ teardown() {
@test "install from release" {
set -eu -o pipefail
cd ${TESTDIR} || ( printf "unable to cd to ${TESTDIR}\n" && exit 1 )
echo "# ddev get netz98/ddev-n8n with project ${PROJNAME} in ${TESTDIR} ($(pwd))" >&3
echo "# ddev add-on get netz98/ddev-n8n with project ${PROJNAME} in ${TESTDIR} ($(pwd))" >&3
ddev add-on get netz98/ddev-n8n
if ! ddev restart >/dev/null; then
ddev logs -s n8n
Expand Down