Skip to content

Commit 5ddce32

Browse files
ezoushenclaude
andcommitted
fix: use PWD for PRODUCT_ROOT in all tools scripts
All tools scripts were setting PRODUCT_ROOT based on the script's location, causing Dockerfile and other resources to be searched in the Homebrew Cellar directory instead of the user's project directory. Updated all tools scripts to use $PWD (current working directory): - build.sh: Now finds Dockerfile in project directory - deploy.sh: Now finds config in project directory - push.sh: Now finds config in project directory - validate-config.sh: Now validates project config - health-check.sh: Now uses project config - status.sh: Now uses project config - init-config.sh: Now creates config in current directory This completes the Homebrew installation fix, allowing all commands to work correctly when installed via brew. Fixes: "Error: Dockerfile not found: /opt/homebrew/Cellar/axon/0.1.6/Dockerfile" 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 2e3b718 commit 5ddce32

File tree

8 files changed

+15
-8
lines changed

8 files changed

+15
-8
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.6
1+
0.1.7

tools/build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ NC='\033[0m'
1414
# Script directory
1515
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
1616
MODULE_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
17-
PRODUCT_ROOT="$(cd "$MODULE_DIR/.." && pwd)"
17+
# Use current working directory for PRODUCT_ROOT (where config/Dockerfile live)
18+
PRODUCT_ROOT="$PWD"
1819

1920
# Default values
2021
CONFIG_FILE="${PRODUCT_ROOT}/axon.config.yml"

tools/deploy.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
2121

2222
# Product root directory (parent of deploy module)
2323
MODULE_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
24-
PRODUCT_ROOT="$(cd "$MODULE_DIR/.." && pwd)"
24+
# Use current working directory for PRODUCT_ROOT (where config/Dockerfile live)
25+
PRODUCT_ROOT="$PWD"
2526

2627
# Default values
2728
CONFIG_FILE="${PRODUCT_ROOT}/axon.config.yml"

tools/health-check.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ NC='\033[0m'
1414
# Script directory
1515
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
1616
MODULE_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
17-
PRODUCT_ROOT="$(cd "$MODULE_DIR/.." && pwd)"
17+
# Use current working directory for PRODUCT_ROOT (where config/Dockerfile live)
18+
PRODUCT_ROOT="$PWD"
1819

1920
# Default configuration file
2021
CONFIG_FILE="${PRODUCT_ROOT}/axon.config.yml"

tools/init-config.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ NC='\033[0m'
1515
# Script directory
1616
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
1717
MODULE_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
18-
PRODUCT_ROOT="$(cd "$MODULE_DIR/.." && pwd)"
18+
# Use current working directory for PRODUCT_ROOT (where config/Dockerfile live)
19+
PRODUCT_ROOT="$PWD"
1920

2021
# Default values
2122
OUTPUT_FILE="axon.config.yml"

tools/push.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ NC='\033[0m'
1414
# Script directory
1515
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
1616
MODULE_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
17-
PRODUCT_ROOT="$(cd "$MODULE_DIR/.." && pwd)"
17+
# Use current working directory for PRODUCT_ROOT (where config/Dockerfile live)
18+
PRODUCT_ROOT="$PWD"
1819

1920
# Default values
2021
CONFIG_FILE="${PRODUCT_ROOT}/axon.config.yml"

tools/status.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ NC='\033[0m'
1414
# Script directory
1515
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
1616
MODULE_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
17-
PRODUCT_ROOT="$(cd "$MODULE_DIR/.." && pwd)"
17+
# Use current working directory for PRODUCT_ROOT (where config/Dockerfile live)
18+
PRODUCT_ROOT="$PWD"
1819

1920
# Default configuration file
2021
CONFIG_FILE="${PRODUCT_ROOT}/axon.config.yml"

tools/validate-config.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ NC='\033[0m'
1414
# Script directory
1515
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
1616
MODULE_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
17-
PRODUCT_ROOT="$(cd "$MODULE_DIR/.." && pwd)"
17+
# Use current working directory for PRODUCT_ROOT (where config/Dockerfile live)
18+
PRODUCT_ROOT="$PWD"
1819

1920
# Default configuration file
2021
CONFIG_FILE="${PRODUCT_ROOT}/axon.config.yml"

0 commit comments

Comments
 (0)