diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2013-04-19 19:58:04 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2013-04-19 19:58:04 +0200 |
commit | b86ce4923c74970e30d5393696d1ff7113fe7b0b (patch) | |
tree | fa7d937a52980c9a8c183c53994a9164f6b6476d | |
parent | 4062a84cb2c9a961201238adce4a5851e377f713 (diff) | |
download | hmnoweb-b86ce4923c74970e30d5393696d1ff7113fe7b0b.tar.gz hmnoweb-b86ce4923c74970e30d5393696d1ff7113fe7b0b.tar.bz2 hmnoweb-b86ce4923c74970e30d5393696d1ff7113fe7b0b.zip |
Update script to set up dev environment.
Now copies the example refinery core config to the right place. And don't
bomb if database.yml already exist.
-rw-r--r-- | lib/tasks/dev_setup.rake | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/tasks/dev_setup.rake b/lib/tasks/dev_setup.rake index 42a37a5..73e0b01 100644 --- a/lib/tasks/dev_setup.rake +++ b/lib/tasks/dev_setup.rake @@ -2,9 +2,13 @@ namespace :dev do task :config_db do - sh 'ln -s database.yml.sqlite3 config/database.yml' + 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_db', 'db:setup' ] + task :setup => [ 'config_refinery', 'config_db', 'db:setup' ] end |