Skip to content

Commit 5d71ab3

Browse files
author
mugen
committed
ADDED missing configs
1 parent 976134d commit 5d71ab3

File tree

4 files changed

+5684
-1
lines changed

4 files changed

+5684
-1
lines changed

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ RUN apt update && apt install -y \
77
unzip \
88
curl \
99
git \
10+
nodejs \
11+
npm \
12+
&& npm install --global yarn \
1013
&& git config --global user.email "you@example.com" && git config --global user.name "Your Name" \
1114
&& docker-php-ext-configure intl \
1215
&& docker-php-ext-install intl \
@@ -34,7 +37,8 @@ RUN chmod -R 777 /usr/src/app/public/uploads
3437
RUN chmod -R 777 /usr/src/app/ai_content
3538
RUN chmod -R 777 /usr/src/app/var
3639
RUN cd /usr/src/app && composer install
37-
40+
RUN cd /usr/src/app && npm install --global yarn
41+
RUN cd /usr/src/app && yarn install && yarn encore production
3842

3943
ENTRYPOINT ["docker-entrypoint.sh"]
4044
CMD ["apache2-foreground"]

src/app/config/bundles.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,7 @@
1111
Symfony\Bundle\SecurityBundle\SecurityBundle::class => ['all' => true],
1212
Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => true],
1313
Symfony\Bundle\MakerBundle\MakerBundle::class => ['dev' => true],
14+
Symfony\WebpackEncoreBundle\WebpackEncoreBundle::class => ['all' => true],
15+
Symfony\UX\StimulusBundle\StimulusBundle::class => ['all' => true],
16+
Symfony\UX\Vue\VueBundle::class => ['all' => true],
1417
];
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
webpack_encore:
2+
# The path where Encore is building the assets - i.e. Encore.setOutputPath()
3+
output_path: '%kernel.project_dir%/public/build'
4+
# If multiple builds are defined (as shown below), you can disable the default build:
5+
# output_path: false
6+
7+
# Set attributes that will be rendered on all script and link tags
8+
script_attributes:
9+
defer: true
10+
# Uncomment (also under link_attributes) if using Turbo Drive
11+
# https://turbo.hotwired.dev/handbook/drive#reloading-when-assets-change
12+
# 'data-turbo-track': reload
13+
# link_attributes:
14+
# Uncomment if using Turbo Drive
15+
# 'data-turbo-track': reload
16+
17+
# If using Encore.enableIntegrityHashes() and need the crossorigin attribute (default: false, or use 'anonymous' or 'use-credentials')
18+
# crossorigin: 'anonymous'
19+
20+
# Preload all rendered script and link tags automatically via the HTTP/2 Link header
21+
# preload: true
22+
23+
# Throw an exception if the entrypoints.json file is missing or an entry is missing from the data
24+
# strict_mode: false
25+
26+
# If you have multiple builds:
27+
# builds:
28+
# frontend: '%kernel.project_dir%/public/frontend/build'
29+
30+
# pass the build name as the 3rd argument to the Twig functions
31+
# {{ encore_entry_script_tags('entry1', null, 'frontend') }}
32+
33+
framework:
34+
assets:
35+
json_manifest_path: '%kernel.project_dir%/public/build/manifest.json'
36+
37+
#when@prod:
38+
# webpack_encore:
39+
# # Cache the entrypoints.json (rebuild Symfony's cache when entrypoints.json changes)
40+
# # Available in version 1.2
41+
# cache: true
42+
43+
#when@test:
44+
# webpack_encore:
45+
# strict_mode: false

0 commit comments

Comments
 (0)