Update app.sh

This commit is contained in:
colin 2023-12-27 13:53:55 +00:00
parent 54fa4b3581
commit 910d406619
1 changed files with 20 additions and 0 deletions

20
app.sh
View File

@ -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..."