teohm / capistrano-shared_file Goto Github PK
View Code? Open in Web Editor NEWCapistrano recipe to symlink shared files e.g. config/database.yml
License: MIT License
Capistrano recipe to symlink shared files e.g. config/database.yml
License: MIT License
Love this gem! Thanks for releasing it.
One problem though; is that it assumes files are in #{shared_dir}/files
. Its directory equivalent, shared_children
, just works off of #{shared_dir}
. This feels inconsistent to me.
Also, in my specific case I have the directory shared/files
which I want to use as a shared child but I also have shared/parameters.yml
which I want to share as a file. Because of this I have to configure my shared_file_dir
something like so:
set :shared_file_dir, '../shared'
Could we have it default to just the shared directory for files?
I am getting errors when running rake tasks in my rails app using this. Using Rails 3.2.8.
Here is the trace:
rake -T --trace
rake aborted!
private method `load' called for nil:NilClass
/Users/cbetta/.rvm/gems/ruby-1.9.3-p286@puppet/gems/capistrano-shared_file-0.1.1/lib/capistrano/shared_file.rb:5:in `<top (required)>'
/Users/cbetta/.rvm/gems/ruby-1.9.3-p286@global/gems/bundler-1.2.1/lib/bundler/runtime.rb:74:in `require'
/Users/cbetta/.rvm/gems/ruby-1.9.3-p286@global/gems/bundler-1.2.1/lib/bundler/runtime.rb:74:in `rescue in block in require'
/Users/cbetta/.rvm/gems/ruby-1.9.3-p286@global/gems/bundler-1.2.1/lib/bundler/runtime.rb:62:in `block in require'
/Users/cbetta/.rvm/gems/ruby-1.9.3-p286@global/gems/bundler-1.2.1/lib/bundler/runtime.rb:55:in `each'
/Users/cbetta/.rvm/gems/ruby-1.9.3-p286@global/gems/bundler-1.2.1/lib/bundler/runtime.rb:55:in `require'
/Users/cbetta/.rvm/gems/ruby-1.9.3-p286@global/gems/bundler-1.2.1/lib/bundler.rb:128:in `require'
/Users/cbetta/Development/puppet/banana/config/application.rb:7:in `<top (required)>'
/Users/cbetta/Development/puppet/banana/Rakefile:5:in `require'
/Users/cbetta/Development/puppet/banana/Rakefile:5:in `<top (required)>'
/Users/cbetta/.rvm/gems/ruby-1.9.3-p286@global/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25:in `load'
/Users/cbetta/.rvm/gems/ruby-1.9.3-p286@global/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25:in `load_rakefile'
/Users/cbetta/.rvm/gems/ruby-1.9.3-p286@global/gems/rake-0.9.2.2/lib/rake/application.rb:501:in `raw_load_rakefile'
/Users/cbetta/.rvm/gems/ruby-1.9.3-p286@global/gems/rake-0.9.2.2/lib/rake/application.rb:82:in `block in load_rakefile'
/Users/cbetta/.rvm/gems/ruby-1.9.3-p286@global/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/Users/cbetta/.rvm/gems/ruby-1.9.3-p286@global/gems/rake-0.9.2.2/lib/rake/application.rb:81:in `load_rakefile'
/Users/cbetta/.rvm/gems/ruby-1.9.3-p286@global/gems/rake-0.9.2.2/lib/rake/application.rb:65:in `block in run'
/Users/cbetta/.rvm/gems/ruby-1.9.3-p286@global/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/Users/cbetta/.rvm/gems/ruby-1.9.3-p286@global/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/Users/cbetta/.rvm/gems/ruby-1.9.3-p286@global/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>'
/Users/cbetta/.rvm/gems/ruby-1.9.3-p286@global/bin/rake:19:in `load'
/Users/cbetta/.rvm/gems/ruby-1.9.3-p286@global/bin/rake:19:in `<main>'
/Users/cbetta/.rvm/gems/ruby-1.9.3-p286@puppet/bin/ruby_noexec_wrapper:14:in `eval'
/Users/cbetta/.rvm/gems/ruby-1.9.3-p286@puppet/bin/ruby_noexec_wrapper:14:in `<main>'
I had to do this to get rid of the error:
gem 'capistrano-shared_file', require: nil
I'd prefer to have all my shared config files be in /shared (well, normally in /shared/config). If I set the shared_file_dir variable to "", everything works, but the path will include a double-slash.
After gem install, i start cap deploy:setup but an error occured :
/usr/lib/ruby/vendor_ruby/capistrano/configuration/loading.rb:152:in `require': no such file to load -- capistrano/shared_file (LoadError)
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.