Skip to content

Feature / Startup Script #26

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

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from
Draft

Feature / Startup Script #26

wants to merge 12 commits into from

Conversation

itsmattsoria
Copy link
Collaborator

Instead of packaging the template repo up with the project config, this PR removes the project config and instead uses a shell script to automate the setup process, including installing the latest minor version of Craft, and generating a new project config. This avoids any potential conflict between the project config and composer installation that can occur when including the project config in the starter template repo.

The starter scrip is run with ./odc-startup.sh and does the following:

  1. Updates the ddev config to use the project's directory as its slug
  2. Starts up ddev
  3. Updates and installs composer
  4. Installs craft with the project name, username, email address, and password set by the prompts, and db creds set automatically
  5. Installs and enables all of the plugins required in composer.json
  6. Removes the project config and license files from .gitignore
  7. Restarts ddev and updates the craft project config
  8. Runs ddev nvm install, ddev nvm use, and ddev npm install
  9. Runs ddev npm run build
  10. Runs ddev describe and ddev launch

Todo:

  • Update README for setup documentation

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.

1 participant