Add a flag to restart development on provision
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Trace the trellis provision command and its --tags handling, then inspect the vm/vagrant stop/start flow and the provisioning step that runs “Setup composer authentications.” Done means a reload option mounts site folders before provisioning so the example command succeeds without manually stopping and starting the VM.
Written by the indexing model from the issue text.
Description
Summary
Would a flag to also restart the vm on provision be possible, something like trellis provision --reload --tags wordpress development (taking reload from vagrant)?
Currently to perform actions such as adding a new site, assuming the vm/vagrant is running, you must do the following:
trellis vm stop(ortrellis downfor vagrant)trellis vm start(ortrellis upfor vagrant)trellis provision --tags wordpress development
If you don't perform these steps, the provision fails on "Setup composer authentications":
TASK [wordpress-install : Setup composer authentications (HTTP Basic) - example.com] ***
failed: [default] (item=default-type.composer.deliciousbrains.com) => {"ansible_loop_var": "item", "changed": false, "item": {"hostname": "composer.deliciousbrains.com", "password": "hahayeahright", "username": "notleavingthishere"}, "msg": "In ConfigCommand.php line 218: File \"./composer.json\" cannot be found in the current directory config [-g|--global] [-e|--editor] [-a|--auth] [--unset] [-l|--list] [-f|--file FILE] [--absolute] [-j|--json] [-m|--merge] [--append] [--source] [--] [<setting-key> [<setting-value>...]]", "stdout": "\nIn ConfigCommand.php line 218:\n \n File \"./composer.json\" cannot be found in the current directory [the rest redacted, you get the gist]
This is because the folders haven't been mounted yet. Navigating to the site folder within the vm/vagrant box shows only an empty web folder, hence the composer.json cannot be found error.
Additional context
Originally posted by @dalepgrant in https://github.com/roots/trellis-cli/issues/421#issuecomment-2274692127
As ever, thank you Roots team 🙏
- Dominant language
- Go
- Stars
- 169
- Forks
- 31
- Avg merge
- 1h 2m
- Merged PRs (30d)
- 17
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from roots/trellis-cli
-
GoReleaser: Switch to `homebrew_casks` from `brews`Possibly taken @tangrufus claimed this 214 days ago. Open
Difficulty 1/5 Under an hour Newbie friendliness 78/100
roots/trellis-cli#669 · 1 comment ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 62/100
roots/trellis-cli#670 · 6 comments ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 48/100
roots/trellis-cli#504 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
❤️ as a developer i need to generate new salts in vaults for each environment when cloning a template repo using radicle/trellis so we can have better boilerplatesPossibly taken A pull request linked to this issue is open or already merged. Openenhancement
Difficulty 4/5 3-5 days Newbie friendliness 35/100
roots/trellis-cli#426 · 2 comments ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 42/100
roots/trellis-cli#408 · 3 comments ·
Maintainers usually reply within 1 day
All issues in roots/trellis-cli
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
blinklabs-io/gouroboros#3026 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
AvengeMedia/DankMaterialShell#4291 ·
-
[Bug]: autoexport rejects OTEL_*_EXPORTER values that differ only in casePossibly taken @yuminn-k claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
open-telemetry/opentelemetry-go-contrib#10291 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
podman-container-tools/skopeo#3041 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day