aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorHarald Eilertsen <hareiler@cisco.com>2013-01-28 17:34:49 +0100
committerHarald Eilertsen <hareiler@cisco.com>2013-01-28 17:34:49 +0100
commit67a26cf042d6431e364bb85675f788e780b4f651 (patch)
tree0c4e98a988e2056ed4588e6c2d899288a1b9e879 /lib
parent996deb2d68baff186f8d0f521cd53cdb1f391949 (diff)
downloadhmnoweb-67a26cf042d6431e364bb85675f788e780b4f651.tar.gz
hmnoweb-67a26cf042d6431e364bb85675f788e780b4f651.tar.bz2
hmnoweb-67a26cf042d6431e364bb85675f788e780b4f651.zip
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/tasks/dev_setup.rake10
1 files changed, 10 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