17 lines
366 B
Bash
17 lines
366 B
Bash
#!/bin/bash
|
|
# Deploy the marketplace to the web server
|
|
# Pulls latest from git, copies connectors/ to /var/www/
|
|
set -e
|
|
|
|
REPO_DIR="/home/dguiducci/repos/skald-connectors"
|
|
WWW_DIR="/var/www/connectors.skaldagent.net"
|
|
|
|
echo "==> Pulling latest from git..."
|
|
cd "$REPO_DIR"
|
|
git pull
|
|
|
|
echo "==> Copying to $WWW_DIR..."
|
|
sudo cp -r connectors/* "$WWW_DIR"
|
|
|
|
echo "==> Done."
|