devilbox
devilbox copied to clipboard
[Howto]: set bin/watch-administration.sh (or for storefront) in devilbox (Shopware 6)?
Have you already checked elsewhere?
- [X] I have read the Devilbox documentation
- [X] I have checked the Devilbox Troubleshooting Guide
- [X] I have checked the Devilbox FAQ
- [ ] I have checked the Devilbox Howto
- [ ] I have checked the Devilbox Forum
- [ ] I have checked existing issues
- [ ] I have googled already with no luck
- [ ] I have not done any of the above
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
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?
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
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?
I still don't get your question about how to run it? You seem to be running it in your screenshot
@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:
- Create another project directory, e.g.:
/shared/data/shopwware-watcher
- Create a Reverse Proxy configuration file in
/shared/data/shopware-watcher/.devilbox/backend.cfg
with the following content:conf:rproxy:http:php:8080
- Go to http://localhost/cnc.php and "reload"
watcherd
on the web interface - 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