A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/renobit/vagrant-node-env/commit/bdf15f2f301e2b1660b839875e34f172ea8be227 below:

This is a majorly important update. · charonsboat/vagrant-node-env@bdf15f2 · GitHub

File tree Expand file treeCollapse file tree 2 files changed

+20

-7

lines changed

Filter options

Expand file treeCollapse file tree 2 files changed

+20

-7

lines changed Original file line number Diff line number Diff line change

@@ -6,6 +6,7 @@

6 6

# -*- mode: ruby; -*-

7 7 8 8

VAGRANTFILE_API_VERSION = "2"

9 +

MAX_MEMORY = 1024

9 10 10 11

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|

11 12

@@ -16,11 +17,16 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|

16 17

config.vm.network :forwarded_port, guest: 1337, host: 1337

17 18 18 19

# set up synced folder

19 -

config.vm.synced_folder "./www", "/home/vagrant/www"

20 +

#config.vm.synced_folder "./www", "/home/vagrant/www"

20 21 21 -

# if you are using VirtualBox, uncomment the line below to allow symlinks in the shared "www" folder

22 -

#config.vm.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/home/vagrant/www", "1"]

22 +

# settings for VirtualBox provider

23 +

config.vm.provider "virtualbox" do |v|

24 +

v.memory = MAX_MEMORY

25 +

v.customize ["sharedfolder", "add", :id, "--name", "www", "--hostpath", (("//?/" + File.dirname(__FILE__) + "/www").gsub("/","\\"))]

26 +

v.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/home/vagrant/www", "1"]

27 +

end

23 28 24 -

# call provisioner shell script

29 +

# call provisioner shell scripts

30 +

config.vm.provision :shell, inline: "mount -t vboxsf -o uid=`id -u vagrant`,gid=`getent group vagrant | cut -d: -f3` www /home/vagrant/www", run: "always"

25 31

config.vm.provision :shell, path: "./provisioner.sh"

26 32

end

Original file line number Diff line number Diff line change

@@ -6,8 +6,8 @@ printf "Updating Box..."

6 6

# make sure the box is fully up to date

7 7

apt-get update

8 8 9 -

# uncomment the line below to allow the system to upgrade

10 -

#apt-get upgrade -y && apt-get dist-upgrade -y

9 +

# comment out the line below to disallow the system to upgrade

10 +

apt-get upgrade -y && apt-get dist-upgrade -y

11 11 12 12

printf "Adding MongoDB packages to apt..."

13 13

# import the public key used by apt

@@ -21,7 +21,13 @@ apt-get update

21 21 22 22

printf "Installing a few necessary packages..."

23 23

# install required packages

24 -

apt-get install -y git npm mongodb-org redis-server

24 +

apt-get install -y git nodejs nodejs-legacy npm mongodb-org redis-server

25 + 26 +

# make sure npm is up to date

27 +

npm install -g npm

28 + 29 +

# remove old hash for npm so bash will find the new version

30 +

hash -d npm

25 31 26 32

# backup mongodb-org config file

27 33

cp /etc/mongod.conf /etc/mongod.conf.backup

@@ -75,5 +81,6 @@ cp /home/vagrant/.bashrc /home/vagrant/.bashrc.backup

75 81

# if you don't want npm overridden, comment out the line below

76 82

echo "alias npm='npm --no-bin-links'" >> /home/vagrant/.bashrc

77 83 84 +

printf "Making sure ownership rights are correct in vagrant user directory..."

78 85

# make sure everything in the vagrant directory is owned by vagrant

79 86

chown -R vagrant:vagrant /home/vagrant --quiet

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4