mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Clean up deploy-examples. Now it finds examples automatically.
This commit is contained in:
@@ -1,10 +1,18 @@
|
||||
#!/bin/bash
|
||||
cd $METEOR_HOME/examples;
|
||||
|
||||
set -e
|
||||
|
||||
cd `dirname $0`
|
||||
cd ../examples
|
||||
|
||||
|
||||
read -p "Prefix? " PREFIX;
|
||||
for EXAMPLE in leaderboard todos wordplay parties
|
||||
do
|
||||
cd $EXAMPLE;
|
||||
echo "meteor deploy $@ $PREFIX-$EXAMPLE;"
|
||||
meteor deploy $@ $PREFIX-$EXAMPLE;
|
||||
cd ..;
|
||||
|
||||
for EXAMPLE in * ; do
|
||||
if [ -d "$EXAMPLE/.meteor" ] ; then
|
||||
cd $EXAMPLE;
|
||||
echo "meteor deploy $@ $PREFIX-$EXAMPLE;"
|
||||
meteor deploy $@ $PREFIX-$EXAMPLE;
|
||||
cd ..;
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user