From aef13e1a755ada4b14a1d9506f776dd158c70eb1 Mon Sep 17 00:00:00 2001 From: Gabriel Tofvesson Date: Tue, 31 Dec 2024 00:15:30 +0100 Subject: [PATCH] Add automatic deploy script --- start.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 start.sh diff --git a/start.sh b/start.sh new file mode 100644 index 0000000..d722b53 --- /dev/null +++ b/start.sh @@ -0,0 +1,14 @@ +#!/bin/sh +if ! npm i +then + echo "Failed to install dependencies" >&2 + exit 4 +fi + +if ! npm run build +then + echo "Failed to build project" >&2 + exit 5 +fi + +npm run start \ No newline at end of file