Update for bootstrapping
This commit is contained in:
parent
02d0c71fef
commit
1f10fc43ad
4 changed files with 18 additions and 8 deletions
17
README.md
17
README.md
|
@ -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
2
Vagrantfile
vendored
|
@ -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
7
bootstrap.sh
Normal 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"
|
Loading…
Reference in a new issue