composer create-project drupal/recommended-project my-local-drupal-install We’ll start by creating a Drupal installation. Then let’s create an environment using this tool! Like the solution above, Ddev takes advantage of the benefits of Docker and Docker Compose. This tool is actually a direct competitor to Lando. More information about Lando is available in the official documentation. Now we can continue with the development of our application. This means that the local environment, created using Lando, is ready. When we follow the link that Lando gives us, we’ll notice the Drupal installation website. After everything is completed, we shall get the message: How do we do that? We’ll use the lando start command which will launch the Docker containers we need. What next? It’s simple - we need to launch our environment. When all goes according to plan, we should see the following message: Then how do we create this environment? We use a single, slightly long command. It gives us a level of abstraction over these tools, making them easier to use. Lando is one of the tools that will generate a ready-made environment for us in a few simple steps. In addition, they will give us an interface for managing it. These are ready-made solutions that will create our desired local environment in a few steps. Tools for generating a local development environment This will work but we don’t have to agonize like this. We can install them separately and configure them one by one. Finally, let us add some kind of database because we need to keep our data somewhere, right? This way, we already have the three systems we need to kick off our fun. On top of that, Drupal is written in PHP, so we’ll need its interpreter. Here we can choose between two popular solutions - Apache and Nginx. This is a web application, so we’ll definitely need a web server. In this article, we’ll focus on launching Drupal. To begin with, let us consider what we’ll need. How to set up a local development environment? Sounds cool? Let us then move on to the next step. In the local environment, we also often install additional modules, allowing us to write and debug our code more easily. This is to avoid unpleasant situations when deploying to these environments. In addition, this environment should resemble the test and production environment as much as possible. Our local environment is accessible only to us and any change to it can be undone without any consequences. It’s a safe place where we can experiment without fear of getting anything wrong. This is a group of systems on our computer that will allow us to run the application we’re developing. What exactly is it, what does it provide us with and how do we generate it? Let's get down to specifics. It is where application development and maintenance starts. There is also a local environment - we could say it is the most important one. In the test environment, we check that the changes we make function as they should. We care most about the production environment which is accessible to all users. We use multiple environments when developing software.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |