Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Updated install to use rsync if available

Ryan Boller9db12382d129
diff --git a/bin/wv-options-build b/bin/wv-options-build
index bb3b4d51f..418d3812f 100755
--- a/bin/wv-options-build
+++ b/bin/wv-options-build
@@ -41,6 +41,13 @@ rm -rf "$BUILD_DIR" "$DEST_DIR"
mkdir -p "$BUILD_DIR" "$DEST_DIR"
cp -r "$SRC_DIR"/common/* "$BUILD_DIR"
+
+if hash rsync 2>/dev/null; then
+ rsync -a "$SRC_DIR/$ENV"/* "$BUILD_DIR"
+else
+ cp -r "$SRC_DIR/$ENV"/* "$BUILD_DIR"
+fi
+
cp -r "$SRC_DIR/$ENV"/* "$BUILD_DIR"
mkdir -p "$DEST_DIR/config"
diff --git a/bin/www b/bin/www
index 45cd89f72..29300b558 100644
--- a/bin/www
+++ b/bin/www
@@ -3,5 +3,5 @@ var app = require('../app');
var port = process.env.PORT || 3000;
app.set('port', port);
app.listen(port, function() {
- console.log('Worldview is available at ' + port);
-});
\ No newline at end of file
+ console.log('Worldview is available at http://localhost:' + port);
+});