Skip to content

Commit

Permalink
hotfix: Backend app service dependencies fix under Conda
Browse files Browse the repository at this point in the history
hotfix: Frontend integration

hotfix: Restore useTranslation()
  • Loading branch information
lehcode committed Apr 14, 2024
1 parent 356f63e commit 31ac950
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 21,623 deletions.
3 changes: 2 additions & 1 deletion .env.dist
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ POSTGRES_HOST_PORT=15432
POSTGRES_CONTAINER_PORT=5432
#
# Directories
APP_DIR=/opt/opendevin/app
APP_DIR=/opt/od
UI_DIR=/var/www/od_ui
# Path to ollama models directory at the host machine
HOST_MODELS_DIR=/mnt/g/LLMs/ollama/models
WORKSPACE_DIR=/opt/opendevin/workspace
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ services:
args:
# jupyter_port: ${JUPYTER_PORT:?}
debug: ${DEBUG:-}
conda_dir: /var/miniconda
conda_dir: ${APP_DIR:?}/.conda
nvidia_utils_driver: 550
app_root: ${APP_ROOT:?}
venv_name: ${VENV_NAME:?}
Expand Down
22 changes: 22 additions & 0 deletions docker/devin/app/run_api.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import argparse
import uvicorn
from opendevin.server import listen

def parse_arguments():
parser = argparse.ArgumentParser(description="Run Uvicorn server for OpenDevin app.")
parser.add_argument("--port", type=int, default=4173, help="Port for the server")
parser.add_argument("--host", type=str, default="0.0.0.0", help="Host for the server")
parser.add_argument("--reload", action="store_true", help="Enable auto-reloading of the server")
parser.add_argument("--log-level", type=str, default="info", choices=["critical", "error", "warning", "info", "debug"], help="Log level for the server")
return parser.parse_args()

if __name__ == "__main__":
# Parse command-line arguments
args = parse_arguments()

# Run Uvicorn server
uvicorn.run("opendevin.server.listen:app",
host=args.host,
port=args.port,
reload=args.reload,
log_level=args.log_level)
Loading

0 comments on commit 31ac950

Please sign in to comment.