The Problem
I want to keep all of my development files in vagrant so that passing them to other developers we can all run a similar environment. I've created my provision files and keep getting the following error.
After hitting google I tried a few different things, and I'm still not getting the results. Any help would be awesome.
Tried Solutions
Here are the attempts things I have tried.
Update (tried to do this):
mkdir -p ~/$APPNAME/local
ln -s ~/$APPNAME/local /vagrant/$APPNAME/.meteor/local
Other things I've tried include symbolically linking the .meteor folder from the vagrant box to the one in the shared file. I've also tried manually deleting the lock file, but no luck there either.
In comments it said run it outside the mounted file, but I don't know exactly what that means and it doesn't seem much like a solution.
Here is my provision file for the vagrant box
# Declare Variable Name for Application
# =======================================
APPNAME="myCoolTestApp"
# Dev Tools
# =======================================
echo "Developer Tools install"
apt-get -y install curl git python-software-properties
apt-get -y install gcc
apt-get -y update
# Folder Sync
# =======================================
echo "Folder Sync"
if ! [ -L /var/www ]; then
rm -rf /var/www
ln -fs /vagrant /var/www
fi
# Node - NPM - Mongo
# =======================================
echo "Node"
curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -
apt-add-repository ppa:chris-lea/node.js
apt-get install -y nodejs
apt-get install -y build-essential
apt-get -y install mongodb
apt-get -y update
# Meteor JS
# =======================================
echo "Installing Vagrant"
su vagrant
curl https://install.meteor.com/ | sh
meteor --version
# App Specific
# =======================================
echo "Create the App"
meteor create /vagrant/$APPNAME
# Cleanup
# =======================================
chown -R vagrant:vagrant /vagrant #changes ownership
apt-get -y update
apt-get -y autoremove
apt-get -y autoclean