1
0
mirror of https://github.com/jcwimer/railsVagrant synced 2026-03-24 18:44:42 +00:00

Initial commit

This commit is contained in:
2015-04-20 15:22:41 -04:00
parent d392f9ded2
commit 9006e9da70
6 changed files with 42 additions and 2 deletions

View File

@@ -1,2 +0,0 @@
# railsVagrant
Ubuntu 14.04 vagrant template for rails development.

8
README.rdoc Normal file
View 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
View 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

View 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
View 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

Binary file not shown.