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

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

Open
3 of 8 tasks
bvgdeveloper opened this issue Jul 11, 2022 · 5 comments
Open
3 of 8 tasks

Comments

@bvgdeveloper
Copy link

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

@bvgdeveloper bvgdeveloper changed the title [Howto]: set bin/watch-administration.sh (or for storefront) in devilbox ? [Howto]: set bin/watch-administration.sh (or for storefront) in devilbox (Shopware 6)? Jul 11, 2022
@cytopia
Copy link
Owner

cytopia commented Jul 11, 2022

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?

@bvgdeveloper
Copy link
Author

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

@bvgdeveloper
Copy link
Author

bvgdeveloper commented Jul 12, 2022

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?

@cytopia
Copy link
Owner

cytopia commented Dec 1, 2022

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

@cytopia
Copy link
Owner

cytopia commented Dec 27, 2022

@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

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

2 participants