forked from ioi/translation-old
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.sh
executable file
·37 lines (29 loc) · 1.06 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
#!/bin/bash
# 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)
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