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

Shopware watch-administration.sh not working after remove shopware/storefront package #3248

Open
maximilian-schwarz opened this issue Aug 2, 2023 · 5 comments

Comments

@maximilian-schwarz
Copy link

PHP Version

8.2

Shopware Version

6.5.3.3

Expected behaviour

I expect that I can now call the administration and after each change the administration area is recompiled.

Actual behaviour

I am running Shopware 6 as headless. Accordingly, I have removed the package "shopware/storefront" from composer.json. And execute "composer update" everything is fine.

But if i run the following command the administration is not working:

bin/watch-administration.sh

Unfortunately the following error appears then:

GET http://shopware.ddev.site:9997/sw-plugin-dev.json 404 (Not Found))

How to reproduce

Install a fresh shopware 6 with the flex template:

composer create-project shopware/production

After the installation run the following command:

composer remove shopware/storefront && composer remove shopware/elasticsearch

Call the administration everything is fine.

https://shopware.ddev.site/admin

If you call the command "bin/watch-administration.sh" the administration is not callable after the login.

http://shopware.ddev.site:9997

Unfortunately the following error appears then:

GET http://shopware.ddev.site:9997/sw-plugin-dev.json 404 (Not Found))

If i execute the following command and add the package "shopware/storefront":

composer require shopware/storefront

Everything is working like expected.

@zaifastafa
Copy link
Contributor

@maximilian-schwarz hi can you tell me how your docker-compose.watcher.yaml looks like? i dont have bin/watch:administration.sh instead i use ddev composer watch:admin command and I cannot reach the shop at 9997 it says bad gateway

@maximilian-schwarz
Copy link
Author

maximilian-schwarz commented Oct 18, 2023

@maximilian-schwarz hi can you tell me how your docker-compose.watcher.yaml looks like? i dont have bin/watch:administration.sh instead i use ddev composer watch:admin command and I cannot reach the shop at 9997 it says bad gateway

@zaifastafa

  1. Step: ddev poweroff

  2. Step: Create a file .ddev/docker-compose.shopware.yml

version: "3.6"

services:
  web:
    expose:
      # Storefront Hot Proxy Ports
      - 9997
      - 9998
      - 9999
    environment:
      # Shopware Administration Watch Host
      - HOST=0.0.0.0
      # Shopware Administration Watch Port
      - PORT=9997
      # Expose APP_URL to administration watcher
      - APP_URL=http://${DDEV_SITENAME}.ddev.site
      - HTTP_EXPOSE=${DDEV_ROUTER_HTTP_PORT}:80,${DDEV_MAILHOG_PORT}:8025,9999:9999,9998:9998,9997:9997
      - HTTPS_EXPOSE=${DDEV_ROUTER_HTTPS_PORT}:80,${DDEV_MAILHOG_HTTPS_PORT}:8025,8899:9999,8888:9998,8887:9997
  1. Step: ddev start

Finally you can watch:
Administration: http://domain.tld.ddev.site:9997
Storefront: http://domain.tld.ddev.site:9998

It's only working without SSL.

@KevsRepos
Copy link

@maximilian-schwarz Your solution generally works, but...

It's only working without SSL.

Which makes it almost unusable. I would consider this a bug. Is there no solution to make it work with ssl?

@shopwareBot
Copy link

[public] Automated response: This issue is linked to the internal issue https://shopware.atlassian.net/browse/NEXT-37823.

[created from NEXT-37823, comment 488334]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants