Permalink
Browse files

propel.ini file must be symlink on all update

  • Loading branch information...
1 parent e886344 commit a551f8e77144d1bbc200ea1ff1dc6bc54170c1df @arlo arlo committed Jun 15, 2010
Showing with 4 additions and 3 deletions.
  1. +4 −3 lib/capifony.rb
View
@@ -318,13 +318,14 @@ def load_database_config(data, env)
namespace :propel do
desc "Ensure Propel is correctly configured"
task :setup do
- shared_files << "config/propel.ini"
conf_files_exists = capture("if test -s #{shared_path}/config/propel.ini -a -s #{shared_path}/config/databases.yml ; then echo 'exists' ; fi").strip
if (!conf_files_exists.eql?("exists"))
- run "cp #{symfony_lib}/plugins/sfPropelPlugin/config/skeleton/config/propel.ini #{shared_path}/config/propel.ini" ;
- deploy.share_childs
+ run "cp #{symfony_lib}/plugins/sfPropelPlugin/config/skeleton/config/propel.ini #{shared_path}/config/propel.ini"
symfony.configure.database
end
+ # share childs again (for propel.ini file)
+ shared_files << "config/propel.ini"
+ deploy.share_childs
end
desc "Migrates database to current version"

0 comments on commit a551f8e

Please sign in to comment.