aboutsummaryrefslogblamecommitdiffstats
path: root/lib/tasks/dev_setup.rake
blob: 73e0b0153d2dacb24ce2bd05f4fa2d1a19674135 (plain) (tree)
1
2
3
4
5
6
7
8
9



                                       




                                                                                             


                                                 
                                                               
   
# Rake task for local development setup

namespace :dev do
  task :config_db do
    sh 'ln -snf database.yml.sqlite3 config/database.yml'
  end

  task :config_refinery do
    sh 'cp config/initializers/refinery/core.rb.example config/initializers/refinery/core.rb'
  end

  desc "Setup local environment for development."
  task :setup => [ 'config_refinery', 'config_db', 'db:setup' ]
end