-
Notifications
You must be signed in to change notification settings - Fork 1
/
install_node_and_rails.sh
executable file
·55 lines (49 loc) · 1.5 KB
/
install_node_and_rails.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/bash
clear
cd $HOME
echo "Install Node Version Manager (NVM)"
echo "=================================="
git clone git://github.com/creationix/nvm.git ~/.nvm
echo ""
echo "done ... Installing nvm"
sleep 3
clear
echo "Install Ruby Version Manager (RVM)"
echo "=================================="
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
echo ""
echo "done ... Installing rvm"
sleep 3
clear
echo " ################################ "
echo " # For Ruby/Rails Development # "
echo " ################################ "
echo ""
echo "Now, proceed to install Ruby using rvm like :"
echo "^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
echo "$ rvm install 1.8.7 && rvm install 1.9.2"
echo ""
echo ""
echo "Select the default Ruby for the development environment"
echo "^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
echo "$ rvm use 1.9.2 --default"
echo ""
echo ""
echo "then, install Ruby on Rails 3 (using ruby 1.9.2 as default)"
echo "^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
echo "$ gem install rails"
echo ""
echo ""
echo " ############################# "
echo " # For Node.js Development # "
echo " ############################# "
echo ""
echo "Sync NVM with the cloud and then, install Node (stable)"
echo "^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
echo "$ nvm sync && nvm install stable"
echo ""
echo "Install express and jshint using NPM"
echo "^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
echo "$ npm install express && npm install jshint -g"
echo ""
echo ""