# HG changeset patch # User Nattee Niparnan # Date 2019-06-26 04:43:56 # Node ID a3f8d0c6c6afe5db55aad6678d8d41b53320f64d # Parent c308d2333eabb43d3e3ddf3d67cc61f616d01427 update install script diff --git a/installer/install.sh b/installer/install.sh --- a/installer/install.sh +++ b/installer/install.sh @@ -10,7 +10,6 @@ echo "Installing Ruby $RUBY_VERSION in RVM" rvm install $RUBY_VERSION - rvm use $RUBY_VERSION@$RUBY_GEMSET echo "Fetching Cafe Grader from Git repositories" @@ -66,10 +65,6 @@ read dummy fi -CAFE_PATH=`pwd` - -cd web - echo "Please provide grader database:" read database @@ -79,6 +74,9 @@ echo "Please provide $username password:" read password +CAFE_PATH=`pwd` +cd web + echo "development:" > config/database.yml echo " adapter: mysql2" >> config/database.yml echo " encoding: utf8" >> config/database.yml