Sha256: 93e4512cde8986e9120e15fd4c90f751a632a11e5c3a4c423f5cb1fa7c744fe5
Contents?: true
Size: 733 Bytes
Versions: 11
Compression:
Stored size: 733 Bytes
Contents
require 'fingercap/recipes' Capistrano::Configuration.instance(:must_exist).load do default_run_options[:pty] = true set :runner, 'app' set :user, 'deploy' set :deploy_to, "/var/www/#{application}" namespace :deploy do desc "Make sure the permissions are correct for all the directories" task :fix_permissions do try_sudo "chown -R #{user}:wheel #{deploy_to}" try_sudo "chown -R #{fetch(:runner, "app")}:wheel #{shared_path}" end namespace :db do desc "Create the production database defined in config/database.yml." task :create do rake = fetch(:rake, "rake") run "cd #{current_path}; #{rake} RAILS_ENV=production db:create" end end end end
Version data entries
11 entries across 11 versions & 1 rubygems