Permalink
Browse files

`config/propel.ini` symlinking fix

First create (with `touch`) empty `config/propel.ini` & symlink it to release path.
And only after that - call `symfony.configure.database`, because `configure:database`
updated `config/propel.ini` in release path, not in shared folder!
  • Loading branch information...
1 parent 0a0e2a8 commit 03408e80a2439eafac3e6deae97910005362a534 @everzet committed Jun 17, 2010
Showing with 5 additions and 3 deletions.
  1. +5 −3 lib/capifony.rb
View
@@ -360,13 +360,15 @@ def load_database_config(data, env)
desc "Ensure Propel is correctly configured"
task :setup do
conf_files_exists = capture("if test -s #{shared_path}/config/propel.ini -a -s #{shared_path}/config/databases.yml ; then echo 'exists' ; fi").strip
+
+ # share childs again (for propel.ini file)
+ shared_files << "config/propel.ini"
+ deploy.share_childs
+
if (!conf_files_exists.eql?("exists"))
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 03408e8

Please sign in to comment.