This project uses Traefik v2.4, network name: traefik
for local dev:
ln -s docker-compose.local.yml docker-compose.yml
ln -s .env-local .envfor dev site at the server:
ln -s docker-compose.development.yml docker-compose.yml
ln -s .env-development .envfor live:
ln -s docker-compose.live.yml docker-compose.yml
ln -s .env-live .envRun in the root of project
npm iUp the containers
docker-compose up -d
Install all with composer (use provided by container)
docker-compose exec php composer install
Init database with local file (notice the -T option, remove the old database with drush sql-drop if it needed)
docker-compose exec -T php drush sql-cli < some-local-file.sqlDeploy the project
docker-compose exec php drush deployFor the local environment open browser on http://DOMAIN.docker.localhost You caf find the correct domain in the PROJECT_BASE_URL parameter of your .env file
docker-compose exec php drush uliIf the default admin was disabled try
docker-compose exec php drush uliThe search popup code is in /clients/search.
The search is a React app that is deployed as a drupal plugin module. The source code of the search is on the folder (clients/search). After doing any change to the JS code the following steps must be done...
npm run dev
This command will prepare the react app for deployment, and copy the build project into drupal.
The get a quote page popup code is in /clients/get_a_quote_page.
The get a quote page is a React app that is deployed as a drupal plugin module. The source code of the search is on the folder (clients/get_a_quote_page). After doing any change to the JS code the following steps must be done...
npm run prod_v2
This command will prepare the react app for deployment, and copy the build project into drupal.
The particle theme is located in the drupal/themes/custom/particle
The command to build theme
npm run build:drupal
The favorites_page and get_a_quote are deprecated React Apps (they were replaced by the Get a Quote Page and new quote workflow)