Perfect Local Theme Development Setup #24
Replies: 6 comments 5 replies
-
So far I have found LocalWP to be the least painful way to quickly spin up dev env |
Beta Was this translation helpful? Give feedback.
-
I've been using Laravel Valet for all my local development (WordPress + Laravel). I really like it. Then I have a bash script with which I can quickly spin up a new WordPress site that pre-installs a fresh copy of TailPress and my debugging plugin. |
Beta Was this translation helpful? Give feedback.
-
I am using Local with VS code (or sometimes Panic Nova) in combination with managed WordPress hosting from Getflywheel (freelance package), not cheap but very productive, especially when you use TailPress ;) |
Beta Was this translation helpful? Give feedback.
-
For basic theme development I normally use a basic Docker Compose script straight from the Docker Documentation with a few adjustments for my M1 Mac (no MySQL-Support yet but MariaDB works fine.): # docker-compose.yml
version: "3.9"
services:
db:
image: mariadb:latest
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: somewordpress
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
wordpress:
depends_on:
- db
image: wordpress:latest
volumes:
- wordpress_data:/var/www/html
- ./:/var/www/html/wp-content/themes/tailpress:cached
ports:
- "8000:80"
restart: always
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
WORDPRESS_DB_NAME: wordpress
volumes:
db_data: {}
wordpress_data: {} Drop this in the theme project folder and run When I'm done with my work I just delete the container. Can't get any cleaner than that IMHO! :) I just found this theme. Very nice and super useful. Will definitely check it out in my next private WordPress project! |
Beta Was this translation helpful? Give feedback.
-
I used just a plain local server and LocalByFlywheel, but I found both not ideal. I recently stumbled across lando for local dev, which is built on Docker. It looks very promising, but I am quite sure how to use it in the best way. E.g. making the |
Beta Was this translation helpful? Give feedback.
-
I use https://github.com/ddev/ddev and it works great. |
Beta Was this translation helpful? Give feedback.
-
I was wondering how a perfect setup for local development could look like.
What is the best practice to spin up a local WordPress installation and how to "link" my newly created Node dev environment with the WordPress themes folder?
Beta Was this translation helpful? Give feedback.
All reactions