Skip to content

Commit

Permalink
ADDED missing configs
Browse files Browse the repository at this point in the history
  • Loading branch information
mugen committed Dec 23, 2023
1 parent 976134d commit 5d71ab3
Show file tree
Hide file tree
Showing 4 changed files with 5,684 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ RUN apt update && apt install -y \
unzip \
curl \
git \
nodejs \
npm \
&& npm install --global yarn \
&& git config --global user.email "you@example.com" && git config --global user.name "Your Name" \
&& docker-php-ext-configure intl \
&& docker-php-ext-install intl \
Expand Down Expand Up @@ -34,7 +37,8 @@ RUN chmod -R 777 /usr/src/app/public/uploads
RUN chmod -R 777 /usr/src/app/ai_content
RUN chmod -R 777 /usr/src/app/var
RUN cd /usr/src/app && composer install

RUN cd /usr/src/app && npm install --global yarn
RUN cd /usr/src/app && yarn install && yarn encore production

ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["apache2-foreground"]
3 changes: 3 additions & 0 deletions src/app/config/bundles.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,7 @@
Symfony\Bundle\SecurityBundle\SecurityBundle::class => ['all' => true],
Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => true],
Symfony\Bundle\MakerBundle\MakerBundle::class => ['dev' => true],
Symfony\WebpackEncoreBundle\WebpackEncoreBundle::class => ['all' => true],
Symfony\UX\StimulusBundle\StimulusBundle::class => ['all' => true],
Symfony\UX\Vue\VueBundle::class => ['all' => true],
];
45 changes: 45 additions & 0 deletions src/app/config/packages/webpack_encore.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
webpack_encore:
# The path where Encore is building the assets - i.e. Encore.setOutputPath()
output_path: '%kernel.project_dir%/public/build'
# If multiple builds are defined (as shown below), you can disable the default build:
# output_path: false

# Set attributes that will be rendered on all script and link tags
script_attributes:
defer: true
# Uncomment (also under link_attributes) if using Turbo Drive
# https://turbo.hotwired.dev/handbook/drive#reloading-when-assets-change
# 'data-turbo-track': reload
# link_attributes:
# Uncomment if using Turbo Drive
# 'data-turbo-track': reload

# If using Encore.enableIntegrityHashes() and need the crossorigin attribute (default: false, or use 'anonymous' or 'use-credentials')
# crossorigin: 'anonymous'

# Preload all rendered script and link tags automatically via the HTTP/2 Link header
# preload: true

# Throw an exception if the entrypoints.json file is missing or an entry is missing from the data
# strict_mode: false

# If you have multiple builds:
# builds:
# frontend: '%kernel.project_dir%/public/frontend/build'

# pass the build name as the 3rd argument to the Twig functions
# {{ encore_entry_script_tags('entry1', null, 'frontend') }}

framework:
assets:
json_manifest_path: '%kernel.project_dir%/public/build/manifest.json'

#when@prod:
# webpack_encore:
# # Cache the entrypoints.json (rebuild Symfony's cache when entrypoints.json changes)
# # Available in version 1.2
# cache: true

#when@test:
# webpack_encore:
# strict_mode: false
Loading

0 comments on commit 5d71ab3

Please sign in to comment.