Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Task]: Workaround create project #603

Merged
merged 8 commits into from
Oct 28, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,14 @@ 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``
kingjia90 marked this conversation as resolved.
Show resolved Hide resolved
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 composer run-script pimcore-install-assets`
kingjia90 marked this conversation as resolved.
Show resolved Hide resolved
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
Expand Down
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@
],
"pimcore-scripts": [
"Pimcore\\Composer::clearCache",
"@pimcore-install-assets"
],
"pimcore-install-assets":[
kingjia90 marked this conversation as resolved.
Show resolved Hide resolved
"Pimcore\\Composer::installAssets"
]
},
Expand Down
Loading