Update deploy.rb
This commit is contained in:
@@ -33,7 +33,6 @@ Capfile
|
||||
config.ru
|
||||
Gemfile
|
||||
Gemfile.lock
|
||||
Gruntfile.js
|
||||
package-lock.json
|
||||
package.json
|
||||
Rakefile
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user