lib/magic_recipes/postgresql.rb in magic_recipes-0.1.11 vs lib/magic_recipes/postgresql.rb in magic_recipes-0.1.13
- old
+ new
@@ -90,9 +90,10 @@
end
desc "Generate the database.yml configuration file."
task :setup, roles: :app do
run "#{sudo if use_sudo} mkdir -p #{shared_path}/config"
+ run "#{sudo if use_sudo} chmod -R 777 #{shared_path}/config"
template "postgresql.yml.erb", "#{shared_path}/config/postgres_#{rails_env}.yml"
end
after "deploy:setup", "postgresql:setup"
desc "Symlink the database.yml file into latest release"
\ No newline at end of file