-
Notifications
You must be signed in to change notification settings - Fork 342
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
Fresh install in env PROD with docker fail #832
Comments
no body got a response ? thanks :) |
Run |
@Ferror got an idea how to solve this? |
I just got aware of the issue. It's because of the PR: #831 I will try to pull off the changes |
@Ferror I don't understand how is that PR related to this issue. |
Well simply as it gets the entires with webpack inside the docker does not load/generate properly |
They're not generated at all, because |
The node container is used during the creation of the Nginx container for production. There is no need of having the node container stay alive. |
It's needed in the PHP container when using Webpack though. |
I prepared the fix. I guess tomorrow morning it's gonna be merged :) #835 |
…ror) This PR was merged into the 1.12 branch. Discussion ---------- FYI #832 The PHP container now needs the frontend files. This is not the most distinguished solution, but it works. I will spend some more time polishing it. But now it is required to fix the 1.12 branch. PS. it worked on the development image only because the command generated the files and syncs with local filesystem Commits ------- 9f5f794 [docker]Integrate production config docker with Webpack
Hi @duchnoun 🙋🏼♂️! Thanks for reporting, fix is merged so I'm closing this issue. In case of further problems feel free to reopen this issue or create a new one. |
…ror) This PR was merged into the 1.12 branch. Discussion ---------- FYI Sylius/Sylius-Standard#832 The PHP container now needs the frontend files. This is not the most distinguished solution, but it works. I will spend some more time polishing it. But now it is required to fix the 1.12 branch. PS. it worked on the development image only because the command generated the files and syncs with local filesystem Commits ------- 9f5f794e782976439958fd519c795f087d261bb7 [docker]Integrate production config docker with Webpack
Hi,
On a fresh system (clear all image , old build ect..)
git clone https://github.com/Sylius/Sylius-Standard.git
cd Sylius-Standard
export MYSQL_PASSWORD=SLyPJLaye7
docker-compose -f docker-compose.prod.yml up -d
docker-compose exec php bin/console sylius:fixtures:load --no-interaction
After visiting the website : error 500.
log 👍
[2022-09-30T10:52:52.890581+00:00] request.CRITICAL: Exception thrown when handling an exception (Twig\Error\RuntimeError: An exception has been thrown during the rendering of a template ("Could not find the entrypoints file from Webpack: the file "/srv/sylius/public/build/shop/entrypoints.json" does not exist."). at /srv/sylius/templates/bundles/SyliusShopBundle/_styles.html.twig line 1) {"exception":"[object] (Twig\Error\RuntimeError(code: 0): An exception has been thrown during the rendering of a template ("Could not find the entrypoints file from Webpack: the file "/srv/sylius/public/build/shop/entrypoints.json" does not exist."). at /srv/sylius/templates/bundles/SyliusShopBundle/_styles.html.twig:1)\n[previous exception] [object] (InvalidArgumentException(code: 0): Could not find the entrypoints file from Webpack: the file "/srv/sylius/public/build/shop/entrypoints.json" does not exist. at /srv/sylius/vendor/symfony/webpack-encore-bundle/src/Asset/EntrypointLookup.php:124)"} []
--- in dev mode it work .. ---
if i check in docker php container there is no /srv/sylius/public/build folder. (but it exist on the host)
Where i mistake ?
Thanks.
The text was updated successfully, but these errors were encountered: