komazarari / capistrano-s3_archive Goto Github PK
View Code? Open in Web Editor NEWCapistrano deployment from an archive on Amazon S3 via RSYNC.
Capistrano deployment from an archive on Amazon S3 via RSYNC.
Hey, I'm trying to use this plugin but I'm getting some errors:
cap local deploy --trace
** Invoke local (first_time)
** Execute local
** Invoke load:defaults (first_time)
** Execute load:defaults
** Invoke deploy (first_time)
** Execute deploy
** Invoke deploy:starting (first_time)
** Execute deploy:starting
** Invoke deploy:check (first_time)
** Execute deploy:check
** Invoke s3_archive:check (first_time)
** Execute s3_archive:check
cap aborted!
NoMethodError: undefined method `[]' for nil:NilClass
/Library/Ruby/Gems/2.0.0/gems/capistrano-s3_archive-0.3.9/lib/capistrano/s3_archive.rb:75:in `check'
/Library/Ruby/Gems/2.0.0/gems/capistrano-s3_archive-0.3.9/lib/capistrano/tasks/s3_archive.rake:10:in `block (3 levels) in <top (required)>'
/Library/Ruby/Gems/2.0.0/gems/sshkit-1.8.1/lib/sshkit/backends/abstract.rb:15:in `instance_exec'
/Library/Ruby/Gems/2.0.0/gems/sshkit-1.8.1/lib/sshkit/backends/abstract.rb:15:in `run'
/Library/Ruby/Gems/2.0.0/gems/sshkit-1.8.1/lib/sshkit/runners/parallel.rb:13:in `block (2 levels) in execute'
Tasks: TOP => s3_archive:check
The deploy has failed with an error: undefined method `[]' for nil:NilClass
** Invoke deploy:failed (first_time)
** Execute deploy:failed
I checked that file and it seems like is looking for my ssh keys?
My deploy.rb file:
lock '3.4.0'
set :application, 'node-myapp'
set :deploy_to, '/var/www/my_path'
set :scm, :s3_archive
set :repo_url, 's3://my-bucket/my-dir'
set :s3_client_options, { region: 'us-east-1', access_key_id: 'xxxxxxx', secret_access_key: 'yyyyyy' }
set :ssh_options, { keys: %w(/Users/my_user/.ssh/id_rsa) }
namespace :deploy do
after :restart, :clear_cache do
on roles(:web), in: :groups, limit: 3, wait: 10 do
# Here we can do anything such as:
# within release_path do
# execute :rake, 'cache:clear'
# end
end
end
end
My local.rb
server '127.0.0.1', user: 'vagrant', roles: %w{web}
role :web, %w{[email protected]:2202}
Any ideas?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.