![]() With any luck, you now have a new D9 site setup using composer and XAMPP. You should be able to open up a browser and go to and the default Druapl install will start allowing you to set up a database in XAMPP's phpMyAdmin and enter the details when prompted. If I want to run another composer command I just go back a couple of folders i.e. Download the core software files to the web root directory, using the method. To update your site and all dependencies to the latest version of Drupal: composer update 'drupal/core-' -with-all-dependencies. Create a database, along with a database user account with full access. To start a new Drupal project with version 9.4.5: composer create-project drupal/recommended-project:9.4.5 'install-dir'. We will setup and install drupal especially for local development purposes. This is a good time to start testing Drupal 9, so you'll be prepared when the stable release comes out. ![]() Verify that the hosting is working by putting a simple HTML file in the web root directory of the hosting, and visiting the URL for your site. The first stable release of Drupal 9 will be in June 2020, but a few days ago the core team released the first beta. cd vendor/bin and then I can run drush status and you should see some stats for the Drupal version, etc. Set up a URL and hosting for your site on the server. I'm sure there is a better method, but when I want to run a Drush command I need to navigate to the 'vendor/bin' folder. To start a new Drupal project with version 9.2.9: composer create-project drupal/recommended-project:9.2.9 'install-dir'. In D9 Drush is added with composer require so lets do that next. To start a new Drupal project with version 9.5.2: composer create-project drupal/recommended-project:9.5.2 'install-dir'. Once done, if still in the 'htdocs' folder, navigate to your site folder cd myd9site and run composer install and composer with use the composer.json to create the site files. Here is the code after the find/replace "web/" with "./".Īlso think about changing "minimum-stability": "stable" to "minimum-stability": "dev" The keys to modify are the 'extra' sub-keys 'webroot' and 'installer-paths. To do this I change the sub-directory from 'web/' to './'. ![]() For example, I prefer to have my site files at root level rather then in a 'web' folder. This only loads the composer.json and composer.lock files but allows you to tweak a few things in composer.json before you create all of the main files. Using XAMPP's Shell command tool, navigate to the 'htdocs' folder and run: composer create-project -no-install drupal/recommended-project myd9site ![]() I'm using XAMPP to build a Drupal 9 project so I start here C:\xampp\htdocs and create a folder for my D9 site, i.e. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |