Skip to content

Commit

Permalink
add chat script
Browse files Browse the repository at this point in the history
  • Loading branch information
aarushik93 committed May 2, 2024
1 parent a02b523 commit 7907c0e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions codex/deploy/packager.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from codex.common.exec_external_tool import execute_command
from codex.deploy.model import Application
from codex.deploy.actions_workflows import manual_deploy, auto_deploy
from codex.deploy.backend_chat_script import script


logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -341,6 +342,10 @@ async def create_zip_file(application: Application, spec: Specification) -> byte
server_file = app_dir / "server.py"
server_file.write_text(application.server_code)

# Make a chat script file
readme_file = package_dir / "backend_chat.sh"
readme_file.write_text(script)

# Make a app.py file
if application.app_code:
app_file = app_dir / "app.py"
Expand Down Expand Up @@ -501,6 +506,10 @@ async def create_remote_repo(
server_file = app_dir / "server.py"
server_file.write_text(application.server_code)

# Make a chat script file
readme_file = package_dir / "backend_chat.sh"
readme_file.write_text(script)

# Make a app.py file
if application.app_code:
app_file = app_dir / "app.py"
Expand Down

0 comments on commit 7907c0e

Please sign in to comment.