Update deploy.rb

This commit is contained in:
Mo Bitar 2019-12-23 17:09:26 -06:00
parent 1b5638fd5b
commit 2b87f87218
No known key found for this signature in database
GPG key ID: C9EAD0759817F96F
2 changed files with 0 additions and 13 deletions

View file

@ -33,7 +33,6 @@ Capfile
config.ru
Gemfile
Gemfile.lock
Gruntfile.js
package-lock.json
package.json
Rakefile

View file

@ -34,16 +34,6 @@ set :rvm_ruby_version, '2.3.0'
namespace :deploy do
task :npm_install do
on roles(:app) do
within release_path do
# string commands dont work, have to use special *%w syntax
execute *%w[ npm install ]
execute *%w[ grunt ]
end
end
end
after :restart, :clear_cache do
on roles(:web), in: :groups, limit: 3, wait: 5 do
# Here we can do anything such as:
@ -54,8 +44,6 @@ namespace :deploy do
end
end
before 'deploy:compile_assets', 'deploy:npm_install'
set :ssh_options, {
keys: %W( #{CAP_CONFIG['default']['key_path']} ),
forward_agent: false,