From 910d4066192fa9bb6eeb6de07f438a1634190860 Mon Sep 17 00:00:00 2001 From: colin Date: Wed, 27 Dec 2023 13:53:55 +0000 Subject: [PATCH] Update app.sh --- app.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/app.sh b/app.sh index f59c3dd..4acc47c 100755 --- a/app.sh +++ b/app.sh @@ -1,5 +1,25 @@ #!/bin/sh +# Conditional installations based on STORAGE_TYPE +case "${STORAGE_TYPE}" in + "redis") + echo "Installing Redis..." + npm install redis + ;; + "postgres") + echo "Installing PostgreSQL..." + npm install pg + ;; + "memcached") + echo "Installing Memcached..." + npm install memcached + ;; + "rethinkdb") + echo "Installing RethinkDB..." + npm install rethinkdbdash + ;; +esac + # If TEST_MODE is true, install Mocha and run tests if [ "$TEST_MODE" = "true" ]; then echo "Installing Mocha for testing..."