Skip to content

Instantly share code, notes, and snippets.

@sebacruz
Created September 24, 2015 19:34
Show Gist options
  • Select an option

  • Save sebacruz/d9e470c477b88ac95fd7 to your computer and use it in GitHub Desktop.

Select an option

Save sebacruz/d9e470c477b88ac95fd7 to your computer and use it in GitHub Desktop.
// ...
namespace :deploy do
task :upload_assets, :roles => :web do
capifony_pretty_print "--> Uploading compiled assets"
run_locally "gulp build --production --disable-fail"
run "mkdir -p #{release_path}/#{assets_folder}"
top.upload assets_folder, "#{release_path}/#{web_path}".to_s, {:via => :scp, :recursive => true}
capifony_puts_ok
end
end
# Set the task to upload compiled assets before the composer install
before "symfony:composer:install", "deploy:upload_assets"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment