lib/ec2onrails/recipes/server.rb in pauldowman-ec2onrails-0.9.10.1 vs lib/ec2onrails/recipes/server.rb in pauldowman-ec2onrails-0.9.10.2

- old
+ new

@@ -320,17 +320,11 @@ end end end desc <<-DESC - DEPRECATED. To install files into the system create the directory - RAILS_ROOT/config/ec2onrails/system_files, it can contain files - that will be installed into the server relative to "/", and it - can contain a manifest file with metadata, this allows the files - to be chowned to any user on the system, and it allows the files - to be cleanly uninstalled from the system. - TODO pointer to full documentation + DEPRECATED. See install_system_files. DESC task :deploy_files do if cfg[:server_config_files_root] puts "***** DEPRECATION WARNING: you're using the deploy_files task which has been deprecated" # TODO pointer to documentation begin @@ -350,16 +344,16 @@ end end end desc <<-DESC - DEPRECATED. To install files into the system create the directory - RAILS_ROOT/config/ec2onrails/system_files, it can contain files - that will be installed into the server relative to "/", and it - can contain a manifest file with metadata, this allows the files - to be chowned to any user on the system, and it allows the files - to be cleanly uninstalled from the system. + Installs files into the system anywhere outside of the Rails app. + The directory RAILS_ROOT/config/ec2onrails/system_files can contain + files that will be installed into the server relative to "/", and it + can contain a manifest file with metadata to change the file owner + and permissions, and it allows the files to be cleanly uninstalled + from the system. TODO pointer to full documentation DESC task :install_system_files do allow_sudo do sudo "/usr/local/ec2onrails/bin/install_system_files #{release_path}" @@ -430,9 +424,17 @@ put File.read(f), "#{remote_file}" end end run "chmod -R go-rwx /home/app/.ssh" end + end + + desc <<-DESC + Clear the varnish proxy cache (if caching is enabled, which it isn't + by default). Purges all documents from the cache. + DESC + task :purge_proxy_cache, :roles => :proxy do + run "varnishadm -T localhost:6082 'url.purge .*'" end desc <<-DESC Restrict the app user's sudo access. Defaults the user to only be able to \ \ No newline at end of file