mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
Merge pull request #3680 from duybkict/vagrant-brunch-v2
Add vagrant box for brunch v2
This commit is contained in:
commit
3ca32f93a1
2 changed files with 21 additions and 1 deletions
9
Vagrantfile
vendored
9
Vagrantfile
vendored
|
@ -17,7 +17,14 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
||||||
config.vm.network "forwarded_port", guest: 3000, host: 13000
|
config.vm.network "forwarded_port", guest: 3000, host: 13000
|
||||||
config.vm.network "forwarded_port", guest: 9485, host: 19485
|
config.vm.network "forwarded_port", guest: 9485, host: 19485
|
||||||
|
|
||||||
config.vm.provision "shell", path: "scripts/vagrant/core/provision.sh", privileged: false
|
config.vm.define "default" do |default|
|
||||||
|
default.vm.provision "shell", path: "scripts/vagrant/core/provision.sh", privileged: false
|
||||||
|
end
|
||||||
|
|
||||||
|
config.vm.define "brunchv2", autostart: false do |brunchv2|
|
||||||
|
brunchv2.vm.provision "shell", path: "scripts/vagrant/core/provision.sh", privileged: false
|
||||||
|
brunchv2.vm.provision "shell", path: "scripts/vagrant/core/update-brunchv2.sh", privileged: false
|
||||||
|
end
|
||||||
|
|
||||||
config.vm.provider "virtualbox" do |v|
|
config.vm.provider "virtualbox" do |v|
|
||||||
v.memory = 2048
|
v.memory = 2048
|
||||||
|
|
13
scripts/vagrant/core/update-brunchv2.sh
Normal file
13
scripts/vagrant/core/update-brunchv2.sh
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
#!/bin/bash -e
|
||||||
|
# Original content copyright (c) 2014 dpen2000 licensed under the MIT license
|
||||||
|
|
||||||
|
echo "updating brunch to v2..."
|
||||||
|
cd /vagrant
|
||||||
|
npm install \
|
||||||
|
brunch@">=2.0.0" \
|
||||||
|
auto-reload-brunch@">=2.0.0" \
|
||||||
|
coffee-script-brunch@">=2.0.0" \
|
||||||
|
coffeelint-brunch@">=2.0.0" \
|
||||||
|
css-brunch@">=2.0.0" \
|
||||||
|
javascript-brunch@">=2.0.0" \
|
||||||
|
sass-brunch@">=2.0.0" --no-bin-links
|
Loading…
Reference in a new issue