Some info about my Assetic configuration with S3.
Marks:
- All my Assets vendor are downloaded with
Bower
inweb/vendor
- Assets not used with Assetic (need to be in a plublic part) in
web/assets
- Assets used with Assetic in
.../public/...
(default conf)
In order to hook Assetic to S3 you need to update app/config/config_prod.yml
file. That's it!
But all file not loaded by Assetic need to but push to S3... That's why I use the following Symfony Cmd src/remiii/UtilsBundle/Command/Assets/AssetsUpdateStaticFilesCommand.php
with list of assets in the conf file src/remiii/UtilsBundle/Resources/config/staticFiles.yml
.
Things that are missing in this (still really useful Gist) :
composer.json
:app/config/parameter.yml
:services.yml
:AmazonS3.php
using the new AWS lib credential array andS3Client
class instead ofAws::factory
:AppKernel.php
:Thanks !! And the it should be publishable 👍