From 89130fe5d8edbe3ee5e8407b1f30106dc5e7391a Mon Sep 17 00:00:00 2001 From: ingalls Date: Tue, 17 Sep 2024 13:28:46 -0600 Subject: [PATCH] Add start script --- api/start | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 api/start diff --git a/api/start b/api/start new file mode 100644 index 000000000..5110a6335 --- /dev/null +++ b/api/start @@ -0,0 +1,14 @@ +#!/bin/bash + +set -x +set -euo pipefail + +export ROOT_URL=$(echo "${APU_URL}" && grep -Po "[a-z]+\.[a-z]+$") + +memcached -d -u root +sed -i "s/API_URL/${API_URL}/g" /etc/nginx/nginx.conf +sed -i "s/ROOT_URL/${ROOT_URL}/g" /etc/nginx/nginx.conf + +nginx + +npm run prod