Skip to content

Commit

Permalink
fix: update launch script for darwin (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kris Hansen authored Oct 27, 2023
1 parent 50b7ae8 commit 3ca8237
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -169,3 +169,9 @@ solidgpt/src/.DS_Store

# Portal
node_modules

# Local storage and workspace files
localstorage/
workspace/out/
solidgpt/src/tools/qdrant/embeddings/
solidgpt/src/tools/qdrant/embedding/
10 changes: 10 additions & 0 deletions StartServer.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
#!/bin/bash

# Check if the OS is macOS
if [[ "$(uname)" == "Darwin" ]]; then
# Check if the Redis service is running
if ! pgrep redis-server > /dev/null; then
# If not, start Redis service using Homebrew
brew services start redis
fi
fi


service redis-server start
celery -A solidgpt.src.api.celery_tasks worker --loglevel=info --detach
uvicorn solidgpt.src.api.api:app --proxy-headers --host 0.0.0.0 --port 8000

0 comments on commit 3ca8237

Please sign in to comment.