Skip to content

Commit

Permalink
fix: Fix webhook deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
drorganvidez committed Oct 23, 2024
1 parent 9748517 commit 3eea592
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 3 additions & 0 deletions docker/entrypoints/production_entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
# Exit immediately if a command exits with a non-zero status
set -e

# Compile webpack files
rosemary webpack:compile

# Wait for the database to be ready by running a script
sh ./scripts/wait-for-db.sh

Expand Down
3 changes: 0 additions & 3 deletions docker/images/Dockerfile.webhook
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,6 @@ RUN pip install -e ./
COPY package.json .
RUN npm install

# Compile webpack files
RUN rosemary webpack:compile

# Configure git safe directory
RUN git config --global --add safe.directory /app

Expand Down
2 changes: 1 addition & 1 deletion rosemary/commands/webpack_compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# Function to load excluded directories from .moduleignore
def load_excluded_modules():
# Start with a list of directories that should always be excluded
excluded_modules = ['.pytest_cache', '__pycache__', 'webhook']
excluded_modules = ['.pytest_cache', '__pycache__']
moduleignore_path = os.path.join(os.getenv('WORKING_DIR', ''), '.moduleignore')

# Check if .moduleignore exists and load its content
Expand Down

0 comments on commit 3eea592

Please sign in to comment.