-
Create and activate a virtual environment
virtualenv MY_ENV source MY_ENV/bin/activate
set FLASK_APP=newproj set FLASK_ENV=development
-
Install packages with pip
cd ad-gpt pip install -r requirements.txt
-
Set up your .env file
- Duplicate
.env.example
to.env
- Duplicate
-
Run the project
flask --app run app
-
Use Google builds command to create the docker image in the container registry
gcloud builds submit --tag gcr.io/PROJECT_ID/langchain
-
Create a Cloud Run service
gcloud run deploy --image gcr.io/PROJECT_ID/langchain --timeout=300 --platform managed
-
Verify the deployed cloud run service in the Google Cloud Console
gcloud builds submit --tag gcr.io/langflow-399804/langchain_wakala
gcloud run deploy --image gcr.io/langflow-399804/langchain_wakala --timeout=300 --platform managed
gcloud run services update --memory 1024Mi