Skip to content

Commit

Permalink
deploy:cold now configures database before building models
Browse files Browse the repository at this point in the history
  • Loading branch information
everzet committed Jun 3, 2010
1 parent 37a4fa6 commit a009d5f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
12 changes: 8 additions & 4 deletions README.md
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions config/capifony.rb
Expand Up @@ -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
Expand Down

0 comments on commit a009d5f

Please sign in to comment.