aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tasks/dev_setup.rake
blob: 7042710d0f88f133b9a5b38048b8f9c650b956dd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# 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', 'db:seed' ]
end