Skip to content

Commit

Permalink
Move npm install to post-start hook.
Browse files Browse the repository at this point in the history
  • Loading branch information
ygerasimov committed Jul 25, 2024
1 parent efe8416 commit 9ba2af2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions config.diffy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
hooks:
post-start:
- exec: cd /mnt/ddev_config/diffy-worker-main && npm install
service: diffy
3 changes: 2 additions & 1 deletion install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ pre_install_actions:
project_files:
- docker-compose.diffy.yaml
- commands/diffy/screenshot
- config.diffy.yaml

# List of files and directories that are copied into the global .ddev directory
# DDEV environment variables can be interpolated into these filenames
Expand All @@ -55,7 +56,6 @@ post_install_actions:
- wget https://github.com/DiffyWebsite/diffy-worker/archive/refs/heads/main.zip
- unzip main.zip
- rm main.zip
- cd diffy-worker-main && npm install
- |
#ddev-nodisplay
#ddev-description:Create .env file
Expand Down Expand Up @@ -94,6 +94,7 @@ post_install_actions:
removal_actions:
- rm -rf commands/diffy
- rm -rf diffy-worker-main
- rm config.diffy.yaml

# Advanced usage - yaml files can be read in and then used as go template actions
# in pre_install_actions and post_install_actions
Expand Down

0 comments on commit 9ba2af2

Please sign in to comment.