Advertisement
Guest User

run composer install in sage theme folder

a guest
Jan 4th, 2022
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.43 KB | None | 0 0
  1. #
  2. # Run 'composer install' in the theme directory
  3. namespace :deploy do
  4.   desc 'Composer install'
  5.   task :composer_install do
  6.     on roles(:app) do
  7.       set :theme_path, fetch(:release_path).join('web/app/themes/',fetch(:theme_dir))
  8.       within fetch(:theme_path) do
  9.         execute :composer, :install
  10.       end
  11.     end
  12.   end
  13. end
  14. ## Runs the above task after publishing
  15. after 'deploy:publishing', 'deploy:composer_install'
  16. ###
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement