mt7180 / quaigle

RAG-based LLM application: project to explore different llm-frameworks like llamaindex, marvin and langchain, other used frameworks: streamlit, fastapi
1 stars 1 forks source link

45 deploy to fly #45

Closed mt7180 closed 12 months ago

mt7180 commented 1 year ago

wip: currently under construction

status:


Zaubeerer commented 1 year ago

@mt7180, wow, congratulations!

I would say that you have successfully tested fly, but it may not be the right tool for this job.

So my suggestion is that I give you an intro to pulumi and we set up the backend in AWS with an EC2 instance.

Like such, we can get some beefy machines to run the backend. We can even set it up with prefect such that the EC2 instance gets automatically started and stopped to save money ;-)

Would you like to explore that right now or first tackle the second app and come back to this later

mt7180 commented 1 year ago

@Zaubeerer : This sounds great and learning this could help me with the next app and in general I really want some experience with this ... I'm just not sure how much EC2 instances are free, I set up a Kafka server 2 months ago, so my free trial year started I think ... but nevertheless, I can shut it down and also maybe the app after a while. The prefect option also sounds great 👍

Just for my understanding: is plumi used instead of a GitHub workflow to deploy on aws?

mt7180 commented 1 year ago

@Zaubeerer: Added new job to GitHub Actions workflow to automatically deploy the frontend to fly.io and it worked !!! 🎉 🎉 🎉 image

Zaubeerer commented 1 year ago

@mt7180, I see you are active here, let me know when I shall review again :)

mt7180 commented 1 year ago

@Zaubeerer : Ready, last change before merging into main would be to change GitHub action with frontend deployment to be executed when pushed on main:

deploy_frontend: if: ${{ github.ref == 'refs/heads/main' }}

mt7180 commented 12 months ago

implemented a GitHub actions check with dorny/paths-filter@v2 wether frontend/ backend files were changed and now the actions for linting and deploying are only triggered if the files in the respective sub-folder were changed 🎉