Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 8a79edb43b
Fetching contributors…

Cannot retrieve contributors at this time

executable file 30 lines (24 sloc) 0.738 kb
#!/bin/bash
cd `dirname $0`
DIR="$(pwd)"
METEOR_DIR="$(pwd)/../.."
# prepare settings file with git sha of last commit
PUBLISH_TMPDIR=$(mktemp -d -t meteor-publish-release-XXXXXXXX)
GIT_SHA=$(git rev-parse HEAD)
cat > "$PUBLISH_TMPDIR/settings.json" <<EOF
{"git-sha": "$GIT_SHA"}
EOF
# ensure our 'awssum' smart package is up-to-date
cd $METEOR_DIR
git submodule init
git submodule update
# publish-release is a meteor app
cd $DIR/publish-release
# run it
#
# XXX when we support third-party packages use that mechanism instead
# of keeping the package in git.
#
# XXX it would be cool to be able to not listen on any port here. instead
# we use port 31337
$METEOR_DIR/meteor -p 31337 --once --settings=$PUBLISH_TMPDIR/settings.json
Jump to Line
Something went wrong with that request. Please try again.