From e26fe9621798bfe545b4b56100b0834642848536 Mon Sep 17 00:00:00 2001 From: Mason Payne Date: Thu, 7 Nov 2024 23:42:46 -0700 Subject: [PATCH] add ente web and public albums static sites --- setup_ente_web.sh | 53 +++++++++++++++++++++++++++++++++++++++++++++++ setup_museum.sh | 4 ++-- 2 files changed, 55 insertions(+), 2 deletions(-) create mode 100644 setup_ente_web.sh diff --git a/setup_ente_web.sh b/setup_ente_web.sh new file mode 100644 index 0000000..c7c37c5 --- /dev/null +++ b/setup_ente_web.sh @@ -0,0 +1,53 @@ +#!/bin/bash + +# Exit immediately if a command exits with a non-zero status. +set -e + +# set the local repo location +LOCAL_REPO="~/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 <