Skip to content
Snippets Groups Projects
Commit b8d14df3 authored by David Renshaw's avatar David Renshaw
Browse files

Sandstorm build: use node and npm from Meteor dev bundle, and don't use sudo.

parent 8e1c8c76
No related branches found
No related tags found
No related merge requests found
......@@ -8,8 +8,14 @@ sudo chown vagrant:vagrant /home/vagrant -R
cd /opt/app
meteor npm install --production
meteor build --directory /home/vagrant/
# Use npm and node from the Meteor dev bundle to install the bundle's dependencies.
TOOL_VERSION=$(meteor show --ejson $(<.meteor/release) | grep '^ *"tool":' |
sed -re 's/^.*"(meteor-tool@[^"]*)".*$/\1/g')
TOOLDIR=$(echo $TOOL_VERSION | tr @ /)
PATH=$HOME/.meteor/packages/$TOOLDIR/mt-os.linux.x86_64/dev_bundle/bin:$PATH
cd /home/vagrant/bundle/programs/server
sudo meteor npm install --production
npm install --production
# Copy our launcher script into the bundle so the grain can start up.
mkdir -p /home/vagrant/bundle/opt/app/.sandstorm/
......
......@@ -8,7 +8,7 @@ apt-get install build-essential git -y
cd /opt/
NODE_ENV=production
PACKAGE=meteor-spk-0.3.0
PACKAGE=meteor-spk-0.3.1
PACKAGE_FILENAME="$PACKAGE.tar.xz"
CACHE_TARGET="/host-dot-sandstorm/caches/${PACKAGE_FILENAME}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment