Skip to content

Commit

Permalink
Always self:update platform tool if possible, fixes ddev#31 (ddev#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
rfay authored Oct 8, 2022
1 parent 1b6e4a9 commit cdfe27b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 4 additions & 2 deletions install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ pre_install_actions:
hooks:
post-start:
- exec: platform self:update -qy --no-major || true
{{ if eq .platformapp.build.flavor "composer" }}
- composer: install
{{ end }}
Expand All @@ -179,14 +181,14 @@ pre_install_actions:
- exec: |
{{ indent 6 $noblanks }}
{{ end }}
{{ if .platformapp.hooks.deploy }}
# platformsh deploy hooks
{{ $noblanks := regexReplaceAll "\n\n*" .platformapp.hooks.deploy "\n" }}
- exec: |
{{ indent 6 $noblanks }}
{{ end }}
{{ if .platformapp.hooks.post_deploy }}
# platformsh post_deploy hooks
{{ $noblanks := regexReplaceAll "\n\n*" .platformapp.hooks.post_deploy "\n" }}
Expand Down
3 changes: 0 additions & 3 deletions web-build/Dockerfile.platformsh
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
#ddev-generated
# Get latest platform tool at time of project creation
# platform self:update fails if there are no updates, and also fails if no internet
RUN platform self:update -y --no-major || true
RUN ln -sf /var/www/html /app

0 comments on commit cdfe27b

Please sign in to comment.