aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/tasks/dev_setup.rake10
-rwxr-xr-xscript/setup6
2 files changed, 16 insertions, 0 deletions
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
diff --git a/script/setup b/script/setup
new file mode 100755
index 0000000..e81eacf
--- /dev/null
+++ b/script/setup
@@ -0,0 +1,6 @@
+#!/bin/bash
+bundle install
+
+if [ $? ]; then
+ bundle exec rake dev:setup
+fi