Created
September 24, 2015 19:34
-
-
Save sebacruz/d9e470c477b88ac95fd7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| // ... | |
| 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