Skip to content

mjnewman/pimcore-development

Repository files navigation

Pimcore Development

Adapted from Pimcore Skeleton

Getting Started

  • Clone this repo
  • Run Docker Compose
    • docker-compose up -d
  • Connect to the PHP-FPM container
    • docker exec -it php-fpm bash
  • Install vendor files
    • composer install
  • Install Pimcore
    • vendor/bin/pimcore-install --mysql-username=pimcore --mysql-password=pimcore --mysql-database=pimcore --mysql-host-socket=db
  • Rebuild Pimcore classes
    • bin/console pimcore:deployment:classes-rebuild -c -d
  • Change file owner
    • chown -R www-data:www-data .
  • Optional: Run container setup scripts
    • ./scripts/container_setup.sh

Pimcore should now be available at:

Docker notes

  • Change nginx localhsot port if desired
  • Disable utility containers if desired
    • php-fpm-debug
    • adminer
  • Change container & volume names if desired
  • Do not commmit docker-compose.yml changes
  • Clear Docker cache & force rebuild
    • docker builder prune
    • docker-compose up --force-recreate --build -d

Useful Pimcore Commands

  • bin/console pimcore:deployment:classes-rebuild -c -d
  • bin/console cache:clear --env=dev
  • bin/console pimcore:cache:clear

Notes

  • All code should adhere to the PSR-12 standard
  • Do not commit changes to docker-compose.yml
  • Do not commit vendor/ directory

About

No description, website, or topics provided.

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published