Drupal Commerce 2.xのデモサイト環境構築の説明
実行環境はPHP7.4、Drupal8.9
Dockerイメージのビルド
docker-compose build --no-cacheコンテナ起動
docker-compose up -dコンテナに入る
docker-compose exec drupal zshデモサイトのビルド及びサーバー起動
php scripts/quickstartサーバーが起動すると以下のような情報が出力されます。
UsernameとPasswordは管理画面ログイン時に必要な情報になるので控えておく。
18/18 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓]
Congratulations, you installed Commerce Kickstart!
Username: admin
Password: xxxxxxxx
Drupal development server started: <http://0.0.0.0:8888>
This server is not meant for production use.
One time login url: <http://0.0.0.0:8888/user/reset/1/1617846841/nzlVsZq_Gg0iUIsr5PNQdq43ch6ZUYQQSR8ECDlOJWQ/login>
Press Ctrl-C to quit the Drupal development server.ブラウザにlocalhostと入力するとデモサイトを見ることができる。
管理画面への遷移は画面右上のLoginから。