Update app.sh
This commit is contained in:
parent
54fa4b3581
commit
910d406619
20
app.sh
20
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..."
|
||||
|
|
Loading…
Reference in New Issue