Skip to content

Conversation

that-one-arab
Copy link

@that-one-arab that-one-arab commented Jul 29, 2023

Issue

When deploying the code remotely, the plugin fails to connect due to the plugin configuration-related files pointing at the wrong URL.

Description

This PR implements a REMOTE_URL environment variable inside the code which allows developers to seamlessly switch between a local environment and a production environment without needing to modify the openapi.yaml and ai-plugin.json files every time code changes are made and redeployed remotely.

This PR will also work very well with almost all future remote deployment integrations as the developer would only need to add a REMOTE_URL environment variable in the deployment service provider's project configuration resulting in a smooth CI/CD pipeline.

Usage

When running the code locally:

python main.py

When running the code remotely:

REMOTE_URL=https://your-website.com python main.py

@logankilpatrick @joedevon

@that-one-arab that-one-arab changed the title Add remote URL Add remote deployment URL support for openapi.yaml and ai-plugin.json Jul 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants