Commit c1302d4

mo khan <mo@mokhan.ca>
2015-05-26 00:53:53
copy the example database.yml to get started.
1 parent c202d8a
bin/bootstrap-vagrant-user.sh
@@ -1,4 +1,3 @@
-rm -fr $HOME/.rbenv
 git clone https://github.com/sstephenson/rbenv.git $HOME/.rbenv
 echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> $HOME/.bash_profile
 echo 'eval "$(rbenv init -)"' >> $HOME/.bash_profile
bin/setup
@@ -12,10 +12,10 @@ Dir.chdir APP_ROOT do
   system "gem install bundler --conservative"
   system "bundle check || bundle install"
 
-  # puts "\n== Copying sample files =="
-  # unless File.exist?("config/database.yml")
-  #   system "cp config/database.yml.sample config/database.yml"
-  # end
+  puts "\n== Copying sample files =="
+  unless File.exist?("config/database.yml")
+    system "cp config/database.yml.example config/database.yml"
+  end
 
   puts "\n== Preparing database =="
   system "bin/rake db:setup"