Skip to content

Instantly share code, notes, and snippets.

@ftassi
Created July 19, 2012 13:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ftassi/3143835 to your computer and use it in GitHub Desktop.
Save ftassi/3143835 to your computer and use it in GitHub Desktop.
# 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