Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add remote deployment URL support for openapi.yaml and ai-plugin.json #64

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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