Everything is available thanks to make
commands.
make up
: Launch containersmake stop
: Stop containersmake prune
: Remove containersmake ps
: See current containers launchedmake shell
: Access to bash on PHP containermake drush
: Launch drush commandmake logs
: Show logsmake composer
: Launch composer commandmake site-install
: Install sitemake site-update
: Update sitemake build
: Rebuild containersmake xdebug-enable
: Enable xdebugmake xdebug-disable
: Disable xdebugmake xdebug-install
: Install xdebug
Edit .env
file and change COMPOSE_PROJECT_NAME
for your own project name.
make build
make up
Then launch Drupal installation.
Add prod
after the command for prod mode. By default, dev is considered:
make site-install prod
In dev mode (default), installation will override admin password by admin and will provide dev environment and tools. Credentials are:
admin:admin
Add prod
after the command for production. By default, dev is considered:
make site-update prod
In case you have an issue about system.site uuid, copy uuid from your system.site.yml file then paste it in the command below
make drush config-set "system.site" uuid "[uuid]"
In case you have the following issue during update, this means the default language uuid is different in database that from config files:
Synchronisation de la configuration : create language.entity.en. [ok]
Drupal\language\Exception\DeleteDefaultLanguageException: Can not [error]
delete the default language in
/var/www/html/web/core/modules/language/src/Entity/ConfigurableLanguage.php:155
Stack trace:
#0
/var/www/html/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(357):
Drupal\language\Entity\ConfigurableLanguage::preDelete(Object(Drupal\Core\Config\Entity\ConfigEntityStorage),
Array)
To fix this, copy the uuid from your language.entity.[default].yml file and paste it in command:
make drush config-set "language.entity.fr" uuid "[uuid]"
Put the following line in your /etc/hosts file (replace lequipetech.localhost by your own domain):
127.0.0.1 lequipetech.localhost
Go to http://lequipetech.localhost
Xdebug is included and disabled by default. To enable it:
make xdebug-enable
For performance reasons, it's advised to disable xdebug when you don't need it.
make xdebug-disable
If Xdebug is not installed:
make xdebug-install
Depending of your browser, launch xdebug plugin/extension.
- In Phpstorm menu > Preferences > Languages & Frameworks > PHP > Debug
- Set
Debug Port
to9001
- Set Simultaneous connection to
8
- Then go to Run menu > Edit configurations.
- Click on
+
- Select
PHP Remote Rebug
- Choose a name, like
Xdebug
- Apply and OK
- When you need xdebug, click on the phone button to listen xdebug connections.