#!/bin/bash # Exit immediately if a command exits with a non-zero status. set -e # This script assumes you have already configured the .env.local file in the photos app directory # set the local repo location LOCAL_REPO="/home/mason/src/ente" cd $LOCAL_REPO/web yarn install yarn build:photos # puts the built files in the web/apps/photos/out directory sudo cp -r apps/photos/out /var/www/ente/photos # configure nginx to serve the photos app on ente.sa.vin sudo tee /etc/nginx/sites-available/ente.sa.vin.conf > /dev/null < /dev/null <