public
Description: Ruby, Rails, Linux environment configuration automation.
Homepage:
Clone URL: git://github.com/mmond/configuration-automation.git
configuration-automation / configure_rails_apps.sh
100644 54 lines (49 sloc) 1.031 kb
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
# This is stage 2 of configuration-automation: Installing Rails Apps
# It is called by configure_ubuntu.sh but can also be run directly
# from the same ./configuration-automation directory.
 
if [ -z "${RAILS_APPLICATION}" ]; then
echo "
To install a production Rails application, choose from the list or [CTRL-C] to quit
The choices are: "
echo "0. None"
echo "1. Radiant CMS"
echo "2. El Dorado"
echo "3. Spree"
echo "4. jobberRails"
printf "Default (0): " ; read RAILS_APPLICATION
fi
 
 
case $RAILS_APPLICATION in
0)
echo $RAILS_APPLICATION: Ok. Enjoy your server! >&2
exit 1
;;
1)
source apps/radiant.sh
;;
2)
source apps/eldorado.sh
;;
3)
source apps/spree.sh
;;
4)
source apps/jobberrails.sh
;;
5)
source apps/radiant.sh
source apps/eldorado.sh
source apps/jobberrails.sh
source apps/spree.sh
;;
all)
source apps/radiant.sh
source apps/eldorado.sh
source apps/jobberrails.sh
source apps/spree.sh
;;
*)
echo $RAILS_APPLICATION: That is an unknown option. Exiting... >&2
exit 1
;;
esac
 
exit 1