mirror of
https://github.com/jcwimer/railsVagrant
synced 2026-03-24 18:44:42 +00:00
Initial commit
This commit is contained in:
@@ -1,2 +0,0 @@
|
||||
# railsVagrant
|
||||
Ubuntu 14.04 vagrant template for rails development.
|
||||
8
README.rdoc
Normal file
8
README.rdoc
Normal file
@@ -0,0 +1,8 @@
|
||||
# railsVagrant
|
||||
Ubuntu 14.04 vagrant template for rails development.
|
||||
|
||||
To use, do the following:
|
||||
* Run <tt>vagrant up</tt>
|
||||
* Run <tt>vagrant ssh</tt>
|
||||
* Cd to <tt>/vagrant/setup</tt>
|
||||
* Run <tt>./build.sh</tt>
|
||||
10
Vagrantfile
vendored
Normal file
10
Vagrantfile
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
Vagrant.configure("2") do |config|
|
||||
config.vm.box = "ubuntu/trusty64"
|
||||
config.vm.network "public_network"
|
||||
config.vm.network "private_network", ip: "192.168.254.2"
|
||||
config.vm.provider "virtualbox" do |v|
|
||||
v.memory = 2048
|
||||
v.cpus = 2
|
||||
v.name = "railsdev"
|
||||
end
|
||||
end
|
||||
10
setup/Vagrant Windows Instructions.txt
Normal file
10
setup/Vagrant Windows Instructions.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
For Windows:
|
||||
1. Install GIT
|
||||
2. Open CMD and run: setx PATH=%PATH%;C:\Program Files (x86)\Git\bin
|
||||
3. Install Virtualbox
|
||||
4. Instal Vagrant
|
||||
5. Open CMD and navigate to railsVagrant folder
|
||||
6. From CMD run vagrant up
|
||||
7. Run vagrant ssh
|
||||
8. Run build.sh inside vagrant
|
||||
|
||||
14
setup/build.sh
Normal file
14
setup/build.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
|
||||
sudo apt-get update
|
||||
sudo apt-get install curl -y
|
||||
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
|
||||
\curl -sSL https://get.rvm.io | bash -s stable --ruby
|
||||
source /home/cody/.rvm/scripts/rvm
|
||||
echo '[[ -s "/home/vagrant/.rvm/scripts/rvm" ]] && source "/home/vagrant/.rvm/scripts/rvm"' >> /home/vagrant/.bashrc
|
||||
rvm install ruby
|
||||
rvm rubygems current
|
||||
sudo apt-get install git-core -y
|
||||
wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh
|
||||
cd /vagrant/setup
|
||||
sudo dpkg -i elasticsearch-0.90.10.deb
|
||||
|
||||
BIN
setup/elasticsearch-0.90.10.deb
Normal file
BIN
setup/elasticsearch-0.90.10.deb
Normal file
Binary file not shown.
Reference in New Issue
Block a user