Git Product home page Git Product logo

sophosia-update-server's Introduction

Sophosis update server

When the Sophosia app checks for update, it request this server using the endpoint

https://sophosia-update-server.uc.r.appspot.com/<target>/<current_version>

This server grabs the latest release in sophosia repo and determine if the new release has different version number than the current_version of the app. If version number is different, this server returns a list of update files for different platforms together with their download urls and signitures. Tauri will update itself according to the server response.

Deployment

Prepare Project

  1. Prepare the flask project.
  2. In app.yaml, add a line runtime: python310 to specify the python runtime.
  3. Add requirements.txt and add necessary dependencies, gunicorn is needed to manage entry point.
  4. In main.py, expose the app on host 0.0.0.0 and port 5000.

Create Google Cloud Project

  1. Create a project on Google Cloud Platform.
  2. Add Cloud Build API.

Google Cloud SDK

  1. Download and install Google Cloud SDK.
  2. Initialize SDK and set our default project by doing
gcloud init

Deploy to GCP

  1. Add AppEngine to GCP
gcloud components install app-engine-python
  1. Deploy
gcloud app deploy
  1. Browse app
gcloud app browse

Update

After finish updating the app, to redeploy the app we simply do deploy it again,

gcloud app deploy

sophosia-update-server's People

Contributors

huntfeng avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.