Skip to content

Commit

Permalink
add hooks for missing install
Browse files Browse the repository at this point in the history
  • Loading branch information
fouteox committed Feb 11, 2025
1 parent 5549a0c commit edc7fae
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion config.vite.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#ddev-generated
web_extra_exposed_ports:
- name: vite
container_port: 5173
Expand All @@ -7,4 +8,11 @@ web_extra_exposed_ports:
web_extra_daemons:
- name: vite
command: "cd ${DDEV_COMPOSER_ROOT} && ${JAVASCRIPT_PACKAGE_MANAGER} run dev"
directory: /var/www/html
directory: /var/www/html

hooks:
post-start:
- exec: >
if [ ! -d node_modules ]; then
${JAVASCRIPT_PACKAGE_MANAGER} install;
fi

0 comments on commit edc7fae

Please sign in to comment.