Skip to content

Commit

Permalink
Adding a flag to disable hosted deploys (#270)
Browse files Browse the repository at this point in the history
  • Loading branch information
aarushik93 authored May 10, 2024
1 parent 803b015 commit bcd70a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ GIT_TOKEN=<your-github-token>
VERBOSE_LOGGING=true
LANGCHAIN_PROJECT="codex-dev"
LANGCHAIN_TRACING_V2=true
LANGCHAIN_API_KEY=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
LANGCHAIN_API_KEY=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

HOSTED_DEPLOYMENT=
2 changes: 1 addition & 1 deletion codex/deploy/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ async def create_cloud_deployment(
db_name = f"{unique_prefix}_db"
db_username = f"{unique_prefix}_user"

if settings.hosted:
if settings.hosted and os.getenv("HOSTED_DEPLOYMENT") == "google":
db_name, db_username = await create_cloud_db(repo)

try:
Expand Down

0 comments on commit bcd70a0

Please sign in to comment.