{"id":28438487,"url":"https://github.com/shopwarearchive/paas","last_synced_at":"2025-06-28T15:31:23.240Z","repository":{"id":37980443,"uuid":"431410028","full_name":"shopwareArchive/paas","owner":"shopwareArchive","description":"PaaS template based on production template","archived":true,"fork":false,"pushed_at":"2024-02-01T14:38:43.000Z","size":596,"stargazers_count":13,"open_issues_count":3,"forks_count":16,"subscribers_count":14,"default_branch":"main","last_synced_at":"2025-06-06T01:07:32.364Z","etag":null,"topics":["hacktoberfest","paas","php","shopware"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shopwareArchive.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-11-24T08:50:10.000Z","updated_at":"2025-05-23T07:54:35.000Z","dependencies_parsed_at":"2024-02-01T16:26:14.813Z","dependency_job_id":null,"html_url":"https://github.com/shopwareArchive/paas","commit_stats":null,"previous_names":["shopwarearchive/paas"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shopwareArchive/paas","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shopwareArchive%2Fpaas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shopwareArchive%2Fpaas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shopwareArchive%2Fpaas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shopwareArchive%2Fpaas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shopwareArchive","download_url":"https://codeload.github.com/shopwareArchive/paas/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shopwareArchive%2Fpaas/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262452241,"owners_count":23313407,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacktoberfest","paas","php","shopware"],"created_at":"2025-06-06T01:07:32.325Z","updated_at":"2025-06-28T15:31:23.235Z","avatar_url":"https://github.com/shopwareArchive.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shopware PaaS\n\n## This repository is deprecated\n\nThis approach is deprecated and will be replaced by a [Flex PaaS recipe](https://github.com/shopware/recipes/tree/main/shopware/paas-meta). See [docs](https://developer.shopware.com/docs/products/paas/repository)\n\nThis template builds Shopware PaaS using Composer. To get started on PaaS, please visit [https://developer.shopware.com/docs/products/paas](https://developer.shopware.com/docs/products/paas)\n\n## Services\n\n- PHP 8.0\n- MariaDB 10.5\n- Redis 6.0\n\n## First deployment\n\n1. The first time the site is deployed, Shopware's command line installer will run and initialize Shopware. It will not run again unless the `installer/installed` is removed. (Do not remove that file unless you want the installer to run on the next deploy!)\n\n2. The installer will create an administrator account with username/password `admin`/`shopware`. **You need to change this password immediately. Not doing so is a security risk**.\n\n3. As the theme assets are generated in the build hook and cannot be changed in runtime, we need to dump the theme configuration and run a second deployment to have theme assets build. See [Stateless Builds section](#stateless-builds) for this\n\n## Customizations\n\nThis project is built on the [shopware/production](https://github.com/shopware/production) repo. All plugins MUST be installed through Composer. The in-browser plugin manager will not work as the disk is read-only.\n\nThe following changes have been made relative to a plain Shopware production project. If using this project as a reference for your own existing project, replicate the changes below to your project.\n\n-   The `.platform.app.yaml`, `.platform/services.yaml`, and `.platform/routes.yaml` files have been added. These provide PaaS-specific configuration and are present in all projects on PaaS. You may customize them as you see fit.\n-   An additional Composer library, [`platformsh/symfonyflex-bridge`](https://github.com/platformsh/symfonyflex-bridge), has been added. It is a bridge library which connects Symfony Flex-based application to PaaS.\n-   The [`platformsh-env.php`](platformsh-env.php) file will map PaaS environment variables to the enviroment variables expected by Shopware. It is auto-included from `composer.json` as part of the autoload process.\n-   Configuration has been added to use Redis for cache and sessions, see [`config/packages/framework.yaml`](config/packages/framework.yaml)\n-   [`config/packages/shopware.yaml`](config/packages/shopware.yaml) has been updated to disable auto update\n-   [`config/packages/shopware.yaml`](config/packages/shopware.yaml) has been updated to disable the admin worker (a message consumer is started instead, see the `workers` section in [`.platform.app.yaml`](.platform.app.yaml))\n\n## Stateless Builds\n\nThis build uses [\"Building without Database\"](https://developer.shopware.com/docs/guides/hosting/installation-updates/deployments/build-w-o-db).\n\nTo support the stateless build for the theme, the theme-config is checked into git for it being available during the build process (an alternative is to store it on an external object storage).\n\nTo update the config\n\n\u003e IMPORTANT: You have to run this once after the first install, otherwise the Frontend will not load css/js files correctly.\n\n-   Dump the theme config e.g. via `platform ssh -A app 'bin/console theme:dump'` (this will generate new config files in files/theme config)\n-   Download the the generated theme config via `platform mount:download --mount 'files' --target 'files' -A app`\n-   You can then remove the old files and add the new files to git (`git add files/theme-config`, `git commit -m 'update theme config'`)\n-   Commit and Push for a redeployment (`git push`)\n\n## Optional additions\n\n### Elasticsearch\n\n1. Add Elasticsearch to [`.platform/services.yaml`](.platform/services.yaml)\n2. Add a relationship for it in [`.platform.app.yaml`](.platform.app.yaml)\n3. Follow the steps mentioned in the [documentation](https://developer.shopware.com/docs/guides/hosting/infrastructure/elasticsearch#activating-and-first-time-indexing) to prepare your instance. `SHOPWARE_ES_HOSTS`, `SHOPWARE_ES_INDEXING_ENABLED` and `SHOPWARE_ES_INDEX_PREFIX` are set in [`platformsh-env.php`](platformsh-env.php).\n4. If all is good, you can enable via `SHOPWARE_ES_ENABLED` (either uncomment in [`platformsh-env.php`](platformsh-env.php) or add as a [`variable`](https://docs.platform.sh/development/variables.html))\n\n### RabbitMQ\n\n1. Add RabbitMQ in [`.platform/services.yaml`](.platform/services.yaml)\n2. Add a relationship for it in [`.platform.app.yaml`](.platform.app.yaml)\n3. Push to Git (so RabbitMQ is provisioned)\n4. For RabbitMQ to work, you need to manually add a queue named `shopware-queue` and a `messages` exchange. To do this you can e.g. use the platform CLI to open a tunnel (`ssh -L 15672:rabbitmqqueue.internal:15672 $(platform ssh --pipe -A app)`) and open the UI via `http://localhost:15672/`. You can get the credentials via `platform relationships`. `RABBITMQ_URL` is set in [`platformsh-env.php`](platformsh-env.php).\n5. `composer require enqueue/amqp-bunny`\n6. Uncomment [`config/packages/enqueue.yaml`](config/packages/enqueue.yaml)\n\n### Fastly\n\n1. Make sure you have at least Shopware 6.4.11.0\n2. Make sure `FASTLY_API_TOKEN` and `FASTLY_SERVICE_ID` are set in the environment or contact Support when its missing.\n3. Enable Fastly config in [`.platform.app.yaml`](.platform.app.yaml) by removing hashtag before `mv config/packages/fastly.yaml.dist config/packages/fastly.yaml`\n4. Push the new config and Fastly is enabled\n\n## References\n\n-   [Shopware](https://www.shopware.com/en/)\n-   [PHP on Platform.sh](https://docs.platform.sh/languages/php.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshopwarearchive%2Fpaas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshopwarearchive%2Fpaas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshopwarearchive%2Fpaas/lists"}