-
-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ddev config file #111
Merged
Merged
Add ddev config file #111
Changes from 26 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
91bf715
Prototype v1 based on laravel template.
bmartinez287 e328df9
Clean up extra settings.
bmartinez287 89fa044
Update config based on feedback.
bmartinez287 e3221f6
Added astro dev deamon.
bmartinez287 6b5050e
Fixed typo.
bmartinez287 131d888
Testing new settings to make Hot module reloading avaliable with vite…
bmartinez287 0c64d74
Got it working, I will add instructions to the docs next. kuddos to c…
bmartinez287 3a35d19
test 2.
bmartinez287 f56b088
Added README instructions, plus cleanup config and added comments.
bmartinez287 8537080
Fix README.md
bmartinez287 136c247
Fix README.md v2
bmartinez287 8abc405
Fix README.md v3
bmartinez287 5c8754f
Added changes as requested on PR review v1.
bmartinez287 28f4f86
Added changes as requested on PR review v2.
bmartinez287 45a4816
Updated config based on feedback v2
bmartinez287 3993f7e
Updated config based on feedback ve
bmartinez287 4669b0b
Testing new settings to avoid EPERM error.
bmartinez287 115c1a2
Updated working version of the PR.
bmartinez287 60faaec
Updated working version of the PR v2.
bmartinez287 fa88a8c
updated the docs with troubleshooting steps.
bmartinez287 b272eab
Added README suggestions.
bmartinez287 6de4fbe
Fix package-lock.json conflict.
bmartinez287 c849d47
Updated README info.
bmartinez287 a002105
Updated README info v2.
bmartinez287 4b8e5df
use node v20 as in config.yaml
rfay 29ac25b
update package-lock.json
rfay f9d2691
Update README.md
bmartinez287 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
type: php | ||
docroot: dist | ||
webserver_type: nginx-fpm | ||
additional_hostnames: [] | ||
additional_fqdns: [] | ||
performance_mode: mutagen # Important to avoid EPERM errors | ||
use_dns_when_possible: true | ||
web_environment: [] | ||
nodejs_version: "20" | ||
disable_upload_dirs_warning: true | ||
|
||
# 4321 is Astro Vite default | ||
web_extra_exposed_ports: | ||
- name: astro-dev | ||
container_port: 4321 | ||
http_port: 4322 | ||
https_port: 4321 | ||
|
||
# The extra -- in `npm run dev -- --host` is a Vite requirement | ||
# https://github.com/vitejs/vite/discussions/3396 | ||
web_extra_daemons: | ||
- name: astro-dev-daemon | ||
command: "sleep 3 && npm run dev -- --host" # sleep avoids race conditions | ||
directory: /var/www/html | ||
hooks: | ||
post-start: | ||
- exec-host: echo -e " NOTICE \n | ||
=================================================================================\n | ||
=================================================================================\n | ||
The Astro dev container is ready \n | ||
By default it will be available at ${DDEV_PRIMARY_URL}:4321 \n | ||
Use ddev describe to confirm if this doesn't work. \n | ||
Check the startup status by running ddev logs --follow --time \n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd love to know what mode you were using and what docker provider you were using that gave you trouble.