From a009d5f79b3b2f7659790d233270ace2253226c5 Mon Sep 17 00:00:00 2001 From: "ever.zet" Date: Thu, 3 Jun 2010 15:53:20 +0300 Subject: [PATCH] deploy:cold now configures database before building models --- README.md | 12 ++++++++---- config/capifony.rb | 1 + 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0294a9c..0c1fc7b 100644 --- a/README.md +++ b/README.md @@ -42,16 +42,20 @@ This command will create the following folder structure on your server: The folders in the releases directory will be the actual deployed code, timestamped. Capistrano symlinks your log & web/uploads directories from your app to the directories in the shared folder so that it doesn’t get erased when you deploy a new version of your code. -Now, to deploy your application for the first time, you can run: +To deploy your application, simply run: - cap deploy:cold - -This will deploy your application, create the db, models, forms, filters, and run all of your migrations. + cap deploy To configure database on production environment, run: cap symfony:configure:database +To deploy your application for the first time, you can run: + + cap deploy:cold + +This will deploy your application, configures databases.yml (will ask you about DSN, user, pass), create the db, models, forms, filters, and run all of your migrations. + Now, whenever you need to deploy a new version of your code, you can just run: cap deploy diff --git a/config/capifony.rb b/config/capifony.rb index bd2bba7..68abc51 100755 --- a/config/capifony.rb +++ b/config/capifony.rb @@ -11,6 +11,7 @@ def prompt_with_default(var, default) namespace :deploy do desc "Overwrite the start task to set the permissions on the project." task :start do + symfony.configure.database symfony.project.permissions doctrine.build_all_and_load end