Local Development Environments #24
Replies: 5 comments 6 replies
-
I'll take a look at ddev. Sad to say that I don't really have a local development environment. I have been thinking that I will need one real soon now with this project! |
Beta Was this translation helpful? Give feedback.
-
Edited to move from Q&A to General. Apparently Q&A is for StackExchange style questions that expect to have an answer marked as "correct", rather than more opiniony "what do you use?" questions. |
Beta Was this translation helpful? Give feedback.
-
I have been considering getting a separate small PC running some flavor of linux - maybe Ubuntu - to be my con development box. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
First laptop I've owned that you have to open and install the RAM and SSD before turning on! |
Beta Was this translation helpful? Give feedback.
-
What do you use for your local development environment?
I've been using dev.
It's a docker based environment, which means you can specify versions of components, such as PHP, MySQL, etc, for each project, Each project has a configuration file that you can specify versions you want, and it will just fetch them. (There are other Docker development environments. I previously tried Lando, but I've found ddev easier to set up).
To set up, you check out the Git repository and run
ddev config
, and it will ask a few questions and set up the environment. Then runddev start
each time you want to start up that project.It creates the database, so you put "db" for all the database params, and you can use
ddev mysql < script
to build the initial database. You can also useddev logs
to view PHP logs.I suspect it does a lot more that I haven't figured out yet, but for setting up containers for projects I find it extremely useful.
Beta Was this translation helpful? Give feedback.
All reactions