Giter VIP home page Giter VIP logo

examplequartapp's Introduction

exampleQuartApp

Example of how to deploy a Quart/Flask Server to an Azure VM with automatic deployment. More details will be added to the README.

Main Guide

Follow this tutorial mainly

How to Deploy Flask Application Guide

However, creating a venv was werird. In worst case, dont create a venv and just install the packages globally. must use sudo on sudo gunicorn -b 0.0.0.0:8000 app:app to run and see errors

sudo gunicorn -b 0.0.0.0:8000 -k uvicorn.workers.UvicornWorker app:app

[Unit]
Description=Gunicorn instance for a simple quart app
After=network.target
[Service]
User=testing
Group=www-data
WorkingDirectory=/home/testing/exampleQuartApp
ExecStart=/home/testing/exampleQuartApp/venv/bin/gunicorn -b localhost:8000 app:app
Restart=always
[Install]
WantedBy=multi-user.target

====================================

Docker Installation We have successfully logged in. Now start the Docker installation. Firstly, update our package manager with sudo apt-get update.

Check Docker documentation for more information and installation.

Type in the command line step by step.

sudo apt-get install
apt-transport-https
ca-certificates
curl
gnupg-agent
software-properties-common

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

sudo apt-key fingerprint 0EBFCD88

sudo add-apt-repository
"deb [arch=amd64] https://download.docker.com/linux/ubuntu
$(lsb_release -cs)
stable"

sudo apt-get install docker-ce docker-ce-cli containerd.io

https://medium.com/hardwareandro/install-docker-on-azure-virtual-machine-github-docker-hub-azure-deploy-pipeline-part-1-4b1e73dd0d7

https://www.docker.com/blog/how-to-deploy-containers-to-azure-aci-using-docker-cli-and-compose/

examplequartapp's People

Contributors

jackblair87 avatar kevin-dough avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

kevin-dough

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.