Create new project for local development¶
There are two ways to use this Drupal 10 project template.
By Composer¶
- Install composer:
sudo wget https://getcomposer.org/composer.phar --output-document=/usr/local/bin/composer && sudo chmod +x /usr/local/bin/composer
- Disable XDebug for CLI - optional:
sudo phpdismod -s cli xdebug
- Install Prestissimo - optional:
sudo composer global require "hirak/prestissimo:^0.3"
1 2 3 |
|
By L3D¶
We strongly recommend to it this way. Just install L3D and things are going much easier.
- Create an empty directory, where you want to locate your project, like
mkdir drupal10
- go into this directory and execute:
1 2 |
|
Enter a name or press Enter
to use the name of the directory.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
|
LakeDrops Drupal 10 Project Template
and you are ready to go. L3D
cares about the initial setup.
This will build the full structure and create a git repository which you can then use during the full live-cycle of that project.
To install a new site with the included default configuration, use drush site-install --existing-config
and you get a jump-start from that.
Deploy project to upstream stages¶
For deployment, both initially and for later updates, follow this:
1 2 3 4 |
|
Adding new and updating existing components¶
Edit the composer.json file according to your requirements and then run composer update
.
Links¶
Using Composer to install Drupal packages through Drupal.org