Giter Site home page Giter Site logo

flask-sus's Introduction

Original source code: here by Jake Rieger. For the deployment, I found this video helpful.

Usage (Ubuntu)

After cloning this repo, we can run the virtual env

$ cd flask-sus
$ virtualenv -p python3 venv
$ source venv/bin/activate
(venv) $ pip install -r requirements.txt

After installing all the requirements, you can deploy it in local environment first. The port number below can be changed.

(venv) $ gunicorn app:app -b 0.0.0.0:<port #>

runtime.txt and Procfile should contain the current python version and bootup info of heroku respectively before we push them to github.

(venv) $ git add .
(venv) $ git commit -m "update"
(venv) $ git push origin master

(venv) $ heroku local web
(venv) $ heroku create
(venv) $ git push heroku master

We can actually start the server which heroku calls Dinos with the command below.

(venv) $ heroku ps:scale web=1

To shut down the app, you can change the type = 0.

(venv) $ heroku ps:scale web=0
(venv) $ deactivate

flask-sus's People

Watchers

 avatar  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.