Created
March 10, 2016 16:34
-
-
Save merlinstardust/535c1c055f15dfbdabc0 to your computer and use it in GitHub Desktop.
Mounts Meteor local directories within Vagrant so apps can run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config.vm.provision ".meteor mounting", type: "shell", run: "always" do |shell| | |
shell.privileged = false | |
shell.args = "'#{app_name}'" | |
shell.inline = <<-SHELL | |
echo "Mounting .meteor/local directories" | |
for directory in /$1/*; do | |
if [ -d $directory/.meteor ]; then | |
mkdir -p $directory/.meteor/local | |
mkdir -p /home/vagrant$directory/.meteor/local | |
sudo mount --bind /home/vagrant$directory/.meteor/local $directory/.meteor/local | |
fi | |
done | |
echo "Directories created" | |
SHELL | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment