⚠️ Not ready for wide deployment. Use Craft 4 Blueprint.
Combine the power of Craft CMS and Vite.js with zero configuration setup and incredible fast paced development 😎.
make install
make dev
- open
https://[project-slug].ddev.site
- Copy
craft5-ddev-vite-blueprint
repo contents into a new project - Create
.env
file at project root by copying.env.example
. - Choose a project slug (must be kebab case) and replace
craft5-ddev-vite-blueprint
with new project slug in:name
inddev > config.yaml
PRIMARY_SITE_URL
andCRAFT_DB_SERVER
in.env
. NOTE: Ensure that thePRIMARY_SITE_URL
value does not have a trailing slash, as this will interfere with the vite server.name
inpackage.json
make install
, follow prompts to set up Craft CMS.- No starter DB is needed when starting the project from scratch.
make dev
- open
https://[project-slug].ddev.site
- Update
README.md
to remove blueprint instructions and customize any setup details for new project.
ddev start
ddev import-db --src=[file_path]
- import new DB, file path from project root. (A gitignoreddb
folder is included in the repository for storing local db copies).make dev
- open
https://[project-slug].ddev.site
make dev
- open
https://[project-slug].ddev.site
Notes can be added to the project using a notes.md
file. This file will be automatically ignored from the repo and is for personal developer use only. Project-critical information should be added to the README.md
.
make build
- build project filesmake dev
- run vite project servermake install
- run first time setupddev start
- starts ddev project without vite serverddev craft
- run Craft CLI commandsddev import-db --src=[file_path]
- import new DB, file path from project root. (A gitignoreddb
folder is included in the repository for storing local db copies).npx vite build
- build for production
Repo based on fork of Craft CMS Dev Environment
Updated by Josh Parylak - Artisan Digital Media
The team behind the magic ✨ 🪄 🦄