diff options
Diffstat (limited to 'lib/tasks/dev_setup.rake')
-rw-r--r-- | lib/tasks/dev_setup.rake | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/lib/tasks/dev_setup.rake b/lib/tasks/dev_setup.rake index 7d7cbc7..8a216c6 100644 --- a/lib/tasks/dev_setup.rake +++ b/lib/tasks/dev_setup.rake @@ -16,14 +16,19 @@ # Rake task for local development setup namespace :dev do - task :config_db do - sh 'ln -snf database.yml.sqlite3 config/database.yml' + file "config/database.yml" do |t| + sh "ln -snf database.yml.postgresql #{t.name}" end - task :config_refinery do - sh 'cp config/initializers/refinery/core.rb.example config/initializers/refinery/core.rb' + file "config/initializers/refinery/core.rb" do |t| + sh "cp config/initializers/refinery/core.rb.example #{t.name}" end desc "Setup local environment for development." - task :setup => [ 'config_refinery', 'config_db', 'db:setup', 'db:seed' ] + task :setup => [ + 'config/initializers/refinery/core.rb', + 'config/database.yml', + 'db:setup', + 'db:seed' + ] end |