forked from openHPI/codeharbor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprovision.sh
26 lines (20 loc) · 971 Bytes
/
provision.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
apt-get update
# rvm
apt-get install -y git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev
apt-get install -y libgdbm-dev libncurses5-dev automake libtool bison libffi-dev
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
curl -sSL https://get.rvm.io | bash
source /etc/profile.d/rvm.sh
rvm install 2.3.0
rvm use 2.3.0 --default
# rails
apt-get -y install nodejs
apt-get -y install libgmp-dev
gem install rails -v 4.2.4
# codeharbour app
cd /vagrant
bundle
# http://stackoverflow.com/questions/22268669/deprecation-warning-you-didnt-set-config-secret-key-base
# echo -n "Codeharbour::Application.config.secret_key_base = '" > config/initializers/secret_token.rb
# rake secret >> config/initializers/secret_token.rb
# echo "'" >> config/initializers/secret_token.rb