Skip to content

Commit

Permalink
Now handling global backstop.json and backstop-local.json files
Browse files Browse the repository at this point in the history
  • Loading branch information
rigoucr committed Aug 29, 2024
1 parent f17dc6d commit 3064dfa
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion commands/backstop/backstop
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,10 @@
## Usage: backstop [flags] [args]
## Example: ddev backstop test --target=local --list=alls

cd ../web && backstop --config=/src/backstop-local.json "$@"
configFile="/src/backstop.json"

if [ -f /src/backstop-local.json ]; then
configFile="/src/backstop-local.json"
fi

cd ../web && backstop --config=${configFile} "$@"

0 comments on commit 3064dfa

Please sign in to comment.