devilbox icon indicating copy to clipboard operation
devilbox copied to clipboard

[Howto]: set bin/watch-administration.sh (or for storefront) in devilbox (Shopware 6)?

Open axamitdeveloper opened this issue 2 years ago • 5 comments

Have you already checked elsewhere?

What are you struggling with?

How can I run watcher for admin panel or storefront.

What have you tried already?

I tried adding the port to data/www/project /.devilbox/nginx.yml

What is your goal?

Develop with watcher

axamitdeveloper avatar Jul 11 '22 13:07 axamitdeveloper

I would suggest adding some more information to this community request, otherwise noone might be able to support you here.

How can I run watcher for admin panel or storefront.

Can you be a bit more specific about what watcher is, and how it is usually run? Where can I find it? What is storefront?

I tried adding the port to data/www/project /.devilbox/nginx.yml

What is port and can you show a snippet?

cytopia avatar Jul 11 '22 14:07 cytopia

Commands for work with Shopware 6 bin/watch-administration.sh | Watcher for administration changes, recompile and reload page if required bin/watch-storefront.sh | Watcher for storefront changes, recompile and reload page if required

https://github.com/shopware/production

axamitdeveloper avatar Jul 11 '22 14:07 axamitdeveloper

image

I would like to expand my question. It turns out the script is trying to run the project on http://localhost:8080/. Is there any way to make it so that my local site is displayed at this address?

axamitdeveloper avatar Jul 12 '22 11:07 axamitdeveloper

I still don't get your question about how to run it? You seem to be running it in your screenshot

cytopia avatar Dec 01 '22 21:12 cytopia

@belvgdeveloper is there any update about the clarification? If not I would go ahead and mark this issue as stale.

I would like to expand my question. It turns out the script is trying to run the project on http://localhost:8080/. Is there any way to make it so that my local site is displayed at this address?

Yes, you can do that via a reverse proxy:

  1. Create another project directory, e.g.: /shared/data/shopwware-watcher
  2. Create a Reverse Proxy configuration file in /shared/data/shopware-watcher/.devilbox/backend.cfg with the following content:
    conf:rproxy:http:php:8080
    
  3. Go to http://localhost/cnc.php and "reload" watcherd on the web interface
  4. Ensure to start your ./bin/watch-admini... command to run the webpack server (Or alternatively put it into autostart to always have it runnnig: https://devilbox.readthedocs.io/en/latest/autostart/autostarting-nodejs-apps.html)

Then you will have the webpack server available at http://shopware-watcher.loc and https://shopware-watcher.loc

Note: For this to work you will have to switch to Devilbox v3.0.0-beta-0.2

cytopia avatar Dec 27 '22 13:12 cytopia