Giter Site home page Giter Site logo

capistrano-s3_archive's People

Contributors

darklore avatar dependabot[bot] avatar komazarari avatar pablokbs avatar

Watchers

 avatar  avatar

capistrano-s3_archive's Issues

Getting error while trying to use the plugin

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.