Skip to content

Commit

Permalink
[Task]: Workaround create project (#603)
Browse files Browse the repository at this point in the history
* Update composer.json

* Update README.md

* Apply suggestions from code review

Co-authored-by: Bernhard Rusch <[email protected]>

* add instruction about cache:clear after pimcore-install

* remove post-install-cmd

* Update README.md

* Update README.md without docker

* Update README.md

---------

Co-authored-by: Bernhard Rusch <[email protected]>
  • Loading branch information
kingjia90 and brusch authored Oct 28, 2024
1 parent 05536e0 commit 0325e9f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ E-Commerce Applications built with Pimcore. If you are an experienced Pimcore de

## Getting started
```bash
COMPOSER_MEMORY_LIMIT=-1 composer create-project pimcore/demo my-project
COMPOSER_MEMORY_LIMIT=-1 composer create-project --no-scripts pimcore/demo my-project
cd ./my-project
./bin/console assets:install --symlink --relative
./vendor/bin/pimcore-install
./bin/console cache:clear
```

- Point your virtual host to `my-project/public`
Expand All @@ -31,17 +33,19 @@ You don't need to have a PHP environment with composer installed.
### Follow these steps

1. Initialize the demo project using the `pimcore/pimcore` image
``docker run -u `id -u`:`id -g` --rm -v `pwd`:/var/www/html pimcore/pimcore:php8.3-latest composer create-project pimcore/demo my-project``
``docker run -u `id -u`:`id -g` --rm -v `pwd`:/var/www/html pimcore/pimcore:php8.3-latest composer create-project --no-scripts pimcore/demo my-project``
1. Go to your new project
`cd my-project/`
1. Part of the new project is a docker compose file
* Run `` echo `id -u`:`id -g` `` to retrieve your local user and group id
* Open the `docker-compose.yaml` file in an editor, uncomment all the `user: '1000:1000'` lines and update the ids if necessary
* Start the needed services with `docker compose up -d`
* Install the assets by running the script `docker compose exec php bin/console assets:install --symlink --relative`
1. Install pimcore and initialize the DB
`docker compose exec php vendor/bin/pimcore-install --mysql-host-socket=db --mysql-username=pimcore --mysql-password=pimcore --mysql-database=pimcore`
* When asked for admin user and password: Choose freely
* This can take a while, up to 20 minutes
1. Clear and warm up the cache with `docker compose exec php bin/console cache:clear`
1. :heavy_check_mark: DONE - You can now visit your pimcore-demo:
* The frontend: <http://localhost>
* The admin interface, using the credentials you have chosen above:
Expand Down
4 changes: 0 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@
},
"scripts": {
"post-create-project-cmd": "Pimcore\\Composer::postCreateProject",
"post-install-cmd": [
"Pimcore\\Composer::postInstall",
"@pimcore-scripts"
],
"post-update-cmd": [
"Pimcore\\Composer::postUpdate",
"@pimcore-scripts"
Expand Down

0 comments on commit 0325e9f

Please sign in to comment.