Cloudways is a managed cloud hosting provider which allows you to host and deploy Drupal sites on popular cloud platforms. They don’t host your site, instead you choose a cloud provider, i.e., DigitalOcean, Linode, AWS and so on. The benefit of using Cloudways is that you can start on a cheap server and upgrade as needed. You get the same features if you spend $20 or $100 per month. As your site gets more traffic you can scale up to a faster server. The server provisioning and application management is all done via the Cloudways platform. For example, if you use DigitalOcean, you won’t have to create a separate account to manage the server. You can do everything via Cloudways platform. The servers come configured with PHP, Apache, MariaDB, Varnish, Redis (uninstalled by default) and so on. Once provisioned you’ll be able to host an unlimited number of Drupal sites on a single server. You’ll need to make sure your server has enough resources, i.e., RAM and CPU. Other hosting platforms charge per site and traffic. Cloudways only charger per server and you can install as many websites as the server and bandwidth can handle. In this tutorial, you’ll learn how to install and deploy a Drupal site on Cloudways. We’ll cover how to install and run Drupal in two ways:
Cloudways doesn’t have a one-click install for Drupal. You will need to be comfortable with Composer and using SSH to get into a server. If you want to deploy your Drupal site via Git then you’ll need to be comfortable using GitHub. Originally from Drupal.org aggregator https://ift.tt/VKmuebQ
0 Comments
When Dries Buytaert took the stage to deliver the Driesnote for DrupalCon Portland he focused on two major points Drupal 10 and Drupal 11.
Originally from Drupal.org aggregator https://ift.tt/QC1rDvx
Now that things with Drupal 10 seem to be moving in the right direction it’s time to start working and developing Drupal 11, said Dries at the DrupalCon Portland 2022.
Originally from Drupal.org aggregator https://ift.tt/scB78EK
I have just tagged drupal-check 1.4.0. This is kind of a big deal. And it's either a great thing or is going to destroy my inbox with support requests. But, in my opinion, it is completely necessary. Originally from Drupal.org aggregator https://ift.tt/JaB5es1
Dries Buytaert, Drupal Founder and Acquia Co-founder and CTO talks about Drupal 10 during the Driesnote at DrupalCon Portland 2022.
Originally from Drupal.org aggregator https://ift.tt/sfc1WPn When creating websites on Drupal, as developers, we should try to make our job easier. Managing modules, users, generating code – all these processes can be automated and performed with single commands. In this article, we'll take a look at the tools available and discuss them, giving specific examples of use. 1. Drupal ConsoleDrupal Console is a powerful Command Line Interface. It's used to generate boilerplate code and maintain and debug Drupal. The latest version of this tool is v1.9.8, released on 28 November 2021. To add Drupal Console to our project, all we need to do is use one command:
After that, we can use various commands provided by Drupal Console. We provide some examples below. Module generation:
Entity generation:
Service generation:
User creation:
As we can see, Drupal Console gives us a lot of possibilities. Another interesting option that this Command Line Interface (CLI) provides us with is running a local PHP server to test our website.
This command will launch a local server on port 8088 for us. 2. Examples for DevelopersThe Examples for Developers project is one great collection of examples of how we can write our own modules in Drupal. We have 33 different modules at our disposal, from simple blocks, through various types of forms, to controllers with REST API support. We'll probably find everything we need. This module will allow us to learn new things and work faster. 3. DevelThe Devel module includes additional functions and help pages for developers and administrators. It provides us with blocks and toolbars for quick access and developer information. We can use it to “simulate” another user. It's a very helpful functionality, especially when we need to test roles and permissions in Drupal. Devel provides us with features that help us with debugging. And the icing on the cake – we can use it to generate test content. To install this module, we use Composer.
4. WeightSometimes, it happens in our project that we use modules that use the same hooks. By default, Drupal doesn't allow to choose the order of module execution. However, we can work around this limitation in three ways. Method 1 – setting the Drupal module weight during its installationIn the install file of our module, we can add HOOK_install and use it to set the module weight. Drupal 9 provides a built-in feature to deal with this issue:
It's a little more complicated in Drupal 7, because we have to change this field in the database by ourselves:
Method 2 – Changing the weight in core.extension.ymlIf we use configurations in our project, we can change the weight of our module in the core.extension.yml file after exporting them. The weight is shown as a number after the module name. The larger the weight, the earlier the methods in the module will be executed. Method 3 – using Modules weightThe Modules weight Drupal module will add an easy-to-use configuration of module weights. When we go to the configuration page (/admin/config/system/modules-weight/configuration), we'll see this: Here we can easily set the weights of our modules. 5. Settings.php and services.ymlWe can find these two files in the sites folder of our Drupal installation. With just a few lines, we can make developing software a lot easier. It's a good idea to create a settings.dev.php file and put all the changes in it. During development, we can include it in the main settings.php file and remove it when we upload our website to the server. An even more convenient option is to use an environment variable such as ENV and set it to "dev". Next, we check in settings.php if there's a settings.$env.php file. If so, we include it.
We can keep all our support changes for development in the settings.dev.php file. What exactly can we do there? 1. Enable error display in addition to the message that our website has encountered a problem.
2. Disable CSS and JS aggregation – something we often forget when editing JS styles or scripts.
3. Disable render cache:
4. Include the development.services.yml file.
The content of the latter file may look like the one we show below.
We enable Twig debugging. These are helpful comments in the HTML structure that'll make it easier for us to find a template file or create hooks. In addition, we disable cache. Also, we add the cache.backend.null service, which we used earlier to disable the render cache. 6. LandoIt's a tool that facilitates the local development of our website. It allows us to run literally anything and is based on Docker. We have CLI at our disposal, which allows us to easily manage our installations. To set up a Drupal installation locally, all we need is a few commands. First, we create a Drupal project using Composer.
Then, we go to the created directory and run the command:
After this process, a .lando.yml file will be created. We'll find there a lot of different information, such as the name of our project, what services we use (initially, these will include appserver and database), addresses of our application, PHP version, or access data for our database. Next, we run the command
Now we can go to the address given in .lando.yml and finish the Drupal installation. 7. DrushA tool that every Drupal developer should know. Drush has been with us since Drupal 4.7 and is still developed. As of writing this, the latest version is 11.0.8, and it was released on 9 April 2022. Drush allows us to manage our website by importing and exporting configurations, updating the database, or cleaning the cache. Newer versions of this tool also allow us to generate code. Let's go over some useful commands: Cache cleaning
Configuration importing
Configuration exporting
Creating a one-time login link
Module enabling
Module disabling and removing
Database updating
Watchdog checking (dblog module)
When it comes to code generation, we have a lot of options to choose from. We recommend using the command
and finding the option that interests us the most. Drupal development tools - summaryWe went through some interesting tools that we can use when working with Drupal. As we can see, Drupal development can be quite quick and pleasant when we know the tools that make the job easier. It's good to take some time to explore these solutions. This investment will pay for itself quickly! Originally from Drupal.org aggregator https://ift.tt/Hl7vMDS Matt Glaman: Improve the Drupal developer experience to empower the Ambitious Site Builder4/27/2022 Today at DrupalCon we had the infamous Driesnote. The tone of the Driesnote focused on what we, as a project, should strategically focus on while building features on the Drupal 10.x.x branch. Dries wants to bring Drupal back to its roots by focusing on the site builder audience. This includes automatic updates, the project browser, and reimagining distributions as composable starter kits. This blog is an extension of a tweet I made at lunch, before catching my airplane home. Note: Dries has not yet published the slides on his website and I didn't grab any pictures of the slides from my phone. I am sure you can find many on Twitter, though. Originally from Drupal.org aggregator https://ift.tt/Hq9VOtw
Daelynn Moyer, Software Engineer and Project Manager at Fast Radius, while discussing microaggression went on to say ‘Exclusion begets exclusion’.
Originally from Drupal.org aggregator https://ift.tt/HEUdXqu Side Hustles for Web Design Professionals: How to Make Some Extra Cash https://t.co/9acWS6r8eG4/27/2022
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
April 2023
Categories |