Skip to content
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

feat(Local recipe starters): Create Repeatable Local Environment enhancement #840

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

joaogarin
Copy link

@joaogarin joaogarin commented Feb 14, 2025

This pull request is for: (mark with an "x")

  • examples/*
  • modules/next
  • packages/next-drupal
  • starters/basic-starter
  • starters/graphql-starter (not yet)
  • starters/pages-starter
  • Other

GitHub Issue: #834

Describe your changes

I have pigybacked on https://github.com/chapter-three/next-drupal/tree/local-recipe to use the script based approach to setup ddev locally both for backend and frontend.

The idea here would be to spin up (and down) easily starterkits to improve contirbutions to the project and make it easier also to eventually run some end2end tests (this could easily be added to some CI like github actions to spinup ddev and run tests against)

Happy to get feedback here, or for someone else to use this and make it better..or drop it completely. this also helped me just understand the solution better (you can only get so far just by reading the code:P )

ddev init :

Spins up a new folder local-next-drupal and in it will use the ddev config which will spin up drupal and the frontend. The frontend will run using pm2

The script receives the starter and spins up the right starter accordingly (in it could also copy specific modules / recipes and enable them)

ddev destroy :

stops ddev and removes the folder

backlineint and others added 12 commits June 27, 2024 10:04
* Adds scripts to init and destroy a local Drupal instance that will
be ignored by vcs.
* Initial scaffolding for a next-drupal recipe. Currently only
installs next module.
* Create example consumer
* Create example content
* Use local version of Drupal module rather than packagist
* Add drupal/core-dev to make running module tests possible
* Add working versions of .env.local to starters
Copy link

vercel bot commented Feb 14, 2025

@joaogarin is attempting to deploy a commit to the Chapter Three Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants