Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ const connectMongoDB = async () => {
}
};

// Initialize connection
// Make this export so we can properly test it
export const initMongoDB = () => connectMongoDB();
connectMongoDB();

// Auth Log Schema remains the same...
const authLogSchema = new mongoose.Schema({
Expand Down
14 changes: 2 additions & 12 deletions launch.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

./env-fetch.sh
#./env-fetch.sh
# Color codes for better visibility
RED='\033[0;31m'
GREEN='\033[0;32m'
Expand All @@ -23,17 +23,7 @@ check_directory() {
# Function to install dependencies
install_dependencies() {
log "${YELLOW}Installing dependencies in $(pwd)...${NC}"
if [ "$EUID" -ne 0 ]; then
echo "Some installations may require elevated privileges..."
if command -v sudo >/dev/null 2>&1; then
sudo -S npm install
else
echo "sudo is not installed. Please run this script with root privileges or install sudo"
exit 1
fi
else
npm install
fi
npm install
}

# Store the root directory
Expand Down
Loading