-
Notifications
You must be signed in to change notification settings - Fork 1
/
deploy.sh
executable file
·48 lines (39 loc) · 1.68 KB
/
deploy.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
#!/bin/bash
# For AWS
sudo apt-get install fontconfig fontconfig-config fonts-dejavu-core fonts-droid \
fonts-freefont-ttf fonts-kacst fonts-kacst-one fonts-khmeros-core fonts-lao \
fonts-liberation fonts-lklug-sinhala fonts-nanum fonts-opensymbol \
fonts-sil-abyssinica fonts-sil-padauk fonts-takao-pgothic fonts-thai-tlwg \
fonts-tibetan-machine fonts-tlwg-garuda fonts-tlwg-kinnari fonts-tlwg-loma \
fonts-tlwg-mono fonts-tlwg-norasi fonts-tlwg-purisa fonts-tlwg-sawasdee \
fonts-tlwg-typewriter fonts-tlwg-typist fonts-tlwg-typo fonts-tlwg-umpush \
fonts-tlwg-waree -y
# redis-server
sudo apt-get install --force-yes -y --quiet redis-server
# utils
sudo apt-get install --force-yes -y --quiet wget tar curl
# fonts (Ubuntu 14.04+)
sudo apt-get install --force-yes -y --quite fonts-noto
# mathjax 2.5
wget -O mathjax-2.5.zip https://github.com/mathjax/MathJax/archive/v2.5-latest.zip
unzip mathjax-2.5.zip -d public/ && mv public/MathJax-2.5-latest public/mathjax-2.5
rm mathjax-2.5.zip
# codemirror 3.22
wget http://codemirror.net/codemirror-3.22.zip
unzip codemirror-3.22.zip -d public/
rm codemirror-3.22.zip
# phantomjs 1.9.7 x86_64
wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2
tar xf phantomjs-1.9.7-linux-x86_64.tar.bz2
sudo cp phantomjs-1.9.7-linux-x86_64/bin/phantomjs /usr/local/bin
rm -rf phantomjs-1.9.7-linux-x86_64*
# ruby 2.1 (rvm)
command curl -sSL https://rvm.io/mpapis.asc | gpg --import -
curl -sSL https://get.rvm.io | bash -s stable --ruby=2.1
echo 'source "$HOME/.rvm/scripts/rvm"' >> "$HOME/.bashrc"
source "$HOME/.rvm/scripts/rvm"
rvm use --default 2.1
gem install bundle
# rubygems & compass assets
bundle install
compass compile