#--- # Excerpted from "Deploying Rails", # published by The Pragmatic Bookshelf. # Copyrights apply to this code. It may not be used to create training material, # courses, books, articles, and the like. Contact us if you are in doubt. # We make no guarantees that this code is fit for any purpose. # Visit http://www.pragmaticprogrammer.com/titles/cbdepra for more book information. #--- require 'bundler/capistrano' set :application, "massiveapp" set :scm, :git set :repository, "git://github.com/deployingrails/massiveapp.git" server "localhost", :web, :app, :db, :primary => true ssh_options[:port] = 2222 ssh_options[:keys] = "~/.vagrant.d/insecure_private_key" set :user, "vagrant" set :group, "vagrant" set :deploy_to, "/var/massiveapp" set :use_sudo, false set :deploy_via, :copy set :copy_strategy, :export namespace :deploy do task :start do ; end task :stop do ; end desc "Restart the application" task :restart, :roles => :app, :except => { :no_release => true } do run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}" end desc "Copy the database.yml file into the latest release" task :copy_in_database_yml do run "cp #{shared_path}/config/database.yml #{latest_release}/config/" end end before "deploy:assets:precompile", "deploy:copy_in_database_yml"
Can anyone help? I'm stuck because the directories appear to have the correct permissions for Cap?????
Thanks
Paul
--
* You received this message because you are subscribed to the Google Groups "Capistrano" group.
* To post to this group, send email to capis...@googlegroups.com
* To unsubscribe from this group, send email to capistrano+...@googlegroups.com For more options, visit this group at http://groups.google.com/group/capistrano?hl=en
Have you re-checked /var permissions? It seems to fail because it cann't create /var/massiveapp with vagrant user
Off-topic: BTW I have this ebook bought but in my pending reading list :) How is it?
You're welcome and thanks for the comments about the book. :-)
enviado desde mi tabla de planchar