1
0
Fork 0

Update for bootstrapping

This commit is contained in:
Andrew Tomaka 2015-02-10 13:24:16 -05:00
parent 02d0c71fef
commit 1f10fc43ad
4 changed files with 18 additions and 8 deletions

View file

@ -1,9 +1,12 @@
# vagrant farmers\_market
## Description
Sample Vagrant project for use with the
[farmers\_market](https://github.com/chrisvfritz/farmers_markets) application.
## Usage
```
git clone git@git.atomaka.com:talks/vagrant-farmers\_market.git
cd vagrant-farmers_market
git clone https://github.com/atomaka/farmers_markets.git code
vagrant up
vagrant ssh
cd app
rackup -o 0.0.0.0
bash <(curl https://github.com/atomaka/vagrant-farmers_market/blog/master/bootstrap.sh)
```

2
Vagrantfile vendored
View file

@ -13,5 +13,5 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
v.memory = 1024
end
config.vm.provision 'shell', path: 'provision/bootstrap.sh'
config.vm.provision 'shell', path: 'provision/configure.sh'
end

7
bootstrap.sh Normal file
View file

@ -0,0 +1,7 @@
#!/bin/bash
git clone git@git.atomaka.com:talks/vagrant-farmers\_market.git
cd vagrant-farmers_market
git clone https://github.com/atomaka/farmers_markets.git code
vagrant up
vagrant ssh -c "cd app && rackup -o 0.0.0"