Permalink
Browse files

deploy:cold now configures database before building models

  • Loading branch information...
1 parent 37a4fa6 commit a009d5f79b3b2f7659790d233270ace2253226c5 @everzet committed Jun 3, 2010
Showing with 9 additions and 4 deletions.
  1. +8 −4 README.md
  2. +1 −0 config/capifony.rb
View
@@ -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
View
@@ -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

0 comments on commit a009d5f

Please sign in to comment.