Skip to content

Commit

Permalink
Update default URL to prod
Browse files Browse the repository at this point in the history
  • Loading branch information
zachgiordano committed Nov 21, 2023
1 parent 9362f9c commit 948665b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion griptape/cli/commands/cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@ def create_deployment(app_id: str, directory: str, endpoint_url: str) -> None:
app_deployer = AppDeployer(
app_directory=directory,
endpoint_url=endpoint_url,
cloud_client=cloud_client,
)
source = app_deployer.get_deployment_source()

Expand All @@ -209,6 +208,7 @@ def create_deployment(app_id: str, directory: str, endpoint_url: str) -> None:
)
if response.status_code != 202:
raise Exception(response.json())
echo(response.json())
except Exception as e:
echo(f"Unable to create deployment: {e}", err=True)
raise e
2 changes: 1 addition & 1 deletion griptape/cli/core/app_deployer.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def _create_deployment_tmp_dir(self) -> str:
return shutil.copytree(
self.app_directory,
os.path.join(self.app_directory, "zip_tmp"),
ignore=shutil.ignore_patterns(".venv*"),
ignore=shutil.ignore_patterns(".venv*", "__pycache__*", "*.pyc"),
)

def _create_deployment_zip_file(self, tmp_dir: str) -> str:
Expand Down
3 changes: 1 addition & 2 deletions griptape/cli/core/utils/constants.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# TODO: Update this to prod
DEFAULT_ENDPOINT_URL = "https://api.cloud-staging.griptape.ai"
DEFAULT_ENDPOINT_URL = "https://api.cloud.griptape.ai"

0 comments on commit 948665b

Please sign in to comment.