Sha256: 5d851b0fca26916dc16e26ef0793823c14ec90e0f810ad3578241a55e5d4c089
Contents?: true
Size: 676 Bytes
Versions: 34
Compression:
Stored size: 676 Bytes
Contents
Capistrano::Configuration.instance(:must_exist).load do define_recipe :sinatra_passenger do use_recipe :passenger namespace :sinatra_passenger do desc "Set file permissions" task :chmod_directories_config do run "cd #{release_path} && find -maxdepth 1 -type d -exec chmod 755 {} \\;" end desc "Set public folder permissions" task :chmod_directories_public do run "cd #{release_path}/public && find -type d -exec chmod 755 {} \\;" end end after "deploy:update_code", "sinatra_passenger:chmod_directories_config" after "deploy:update_code", "sinatra_passenger:chmod_directories_public" end end
Version data entries
34 entries across 34 versions & 2 rubygems