From 67a26cf042d6431e364bb85675f788e780b4f651 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Mon, 28 Jan 2013 17:34:49 +0100 Subject: Create development setup script. Runs bundle install, creates database config and loads the database schema and initial seed. Should probably be made smarter in the end, but for now we'll try to get by with this. --- lib/tasks/dev_setup.rake | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 lib/tasks/dev_setup.rake (limited to 'lib') diff --git a/lib/tasks/dev_setup.rake b/lib/tasks/dev_setup.rake new file mode 100644 index 0000000..42a37a5 --- /dev/null +++ b/lib/tasks/dev_setup.rake @@ -0,0 +1,10 @@ +# Rake task for local development setup + +namespace :dev do + task :config_db do + sh 'ln -s database.yml.sqlite3 config/database.yml' + end + + desc "Setup local environment for development." + task :setup => [ 'config_db', 'db:setup' ] +end -- cgit v1.2.3