]> cat aescling's git repositories - mastodon.git/commitdiff
Fix Vagrantfile to include yarn
authorvjackson725 <vjackson725@users.noreply.github.com>
Sun, 8 Jan 2017 01:38:04 +0000 (12:38 +1100)
committervjackson725 <vjackson725@users.noreply.github.com>
Sun, 8 Jan 2017 01:38:04 +0000 (12:38 +1100)
The current Vagrantfile fails to build upon provisioning, as it lacks yarn.

Change the Vagrantfile to add the yarn repository, and install yarn.

Vagrantfile

index 5041dde393a04b68e653c389c05228e669599013..56762f679ffd145a6b18ababade7885ed0ab7565 100644 (file)
@@ -5,6 +5,10 @@ $provision = <<SCRIPT
 
 cd /vagrant # This is where the host folder/repo is mounted
 
+# Add the yarn repo + yarn repo keys
+curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
+sudo apt-add-repository 'deb https://dl.yarnpkg.com/debian/ stable main'
+
 # Add repo for Ruby 2.3 binaries
 sudo apt-add-repository ppa:brightbox/ruby-ng
 
@@ -33,6 +37,7 @@ sudo apt-get install \
   redis-tools \
   postgresql \
   postgresql-contrib \
+  yarn \
   -y
 
 # Set Ruby 2.3 as 'ruby'