Created
July 19, 2012 13:15
-
-
Save ftassi/3143835 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# After finalizing update: | |
after "deploy:finalize_update" do | |
if update_vendors | |
# share the children first (to get the vendor symlink) | |
deploy.share_childs | |
vendors_mode.chomp # To remove trailing whiteline | |
case vendors_mode | |
when "upgrade" then symfony.vendors.upgrade | |
when "install" then symfony.vendors.install | |
when "reinstall" then symfony.vendors.reinstall | |
end | |
elsif use_composer | |
symfony.composer.install | |
else | |
# share the children first (to get the vendor symlink) | |
deploy.share_childs | |
vendors_mode.chomp # To remove trailing whiteline | |
symfony.bootstrap.build | |
end | |
if assets_install | |
symfony.assets.install # 2. Publish bundle assets | |
end | |
if cache_warmup | |
symfony.cache.warmup # 3. Warmup clean cache | |
end | |
if dump_assetic_assets | |
symfony.assetic.dump # 4. Dump assetic assets | |
end | |
if model_manager == "propel" | |
symfony.propel.build.model | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment