lib/capistrano/recipes/uploader.rb in marcosgz-cap-recipe-0.0.5 vs lib/capistrano/recipes/uploader.rb in marcosgz-cap-recipe-0.0.6
- old
+ new
@@ -14,10 +14,10 @@
set(:uploader_template, 'uploader.yml.erb') unless exists?(:uploader_template)
namespace :uploader do
namespace :setup do
desc "Upload configs"
- task :default, :roles => :db do
+ task :default, :roles => :app do
if exists?(:uploader_setup_settings)
set :recipe_settings, fetch(:uploader_setup_settings, {})
put template.render(fetch(:uploader_template)), fetch(:uploader_remote_file)
else
puts "[FATAL] - Uploader template settings were not found"