forked from projectblacklight/blacklight
-
Notifications
You must be signed in to change notification settings - Fork 0
/
provision.sh
30 lines (22 loc) · 1009 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
27
28
29
30
#!/usr/bin/env bash
# This script is used by the Vagrant file to provision the box
# Install server dependencies
sudo yum install -y epel-release
sudo yum install -y curl git java-1.8.0-openjdk-devel nodejs yum-utils gcc bzip2 kernel-devel dkms
# Install RVM and Ruby
su - vagrant -c 'gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3'
su - vagrant -c 'curl -sSL https://get.rvm.io | bash -s stable'
su - vagrant -c 'rvm 2.2.3 --install --default'
# Install bundler gem and bundle install
su - vagrant -c 'gem install bundler'
su - vagrant -c 'cd /home/vagrant/sync && bundle install'
# Create the test application
su - vagrant -c 'cd /home/vagrant/sync && rake engine_cart:generate'
# Output some instructions on what to do next
echo "
Now to start Solr and Blacklight run the following from within the Blacklight directory:
vagrant ssh
cd /home/vagrant/sync
rake blacklight:server[\"-b 0.0.0.0\"]
Now you can make changes to Blacklight and see the results.
"