Coder Social home page Coder Social logo

flask_nsfw's Introduction

flask_nsfw

To ensure a reproducible execution environment for this app, development has proceeded in Docker from the start. The base image used is caffe:cpu, which can take some time to build if you don't have it cached.

The scripts/ directory contains a Bash script, flask_nsfw, which saves you the headache of having to remember the exact Docker CLI invocations that start the app container. Available commands are build, test, run, and shell.

First, run:

$ flask_nsfw build

This will prepare a Docker image tagged flask_nsfw. If this label doesn't suit you, edit the NAME variable in scripts/flask_nsfw before building.

To test the image:

$ flask_nsfw test

The contents of the src/ directory are copied into the image during build. If you make any changes to the source, either rebuild the image, or, preferably, by passing dev as first argument, for example:

$ flask_nsfw dev run

The above command will start Flask with the src/ directory mounted as a Docker volume. Thus any changes made to the source will be immediately reflected inside the container. Therefore, it is recommended to start the container in production via:

$ flask_nsfw run

To get a Bash prompt in the container, use:

$ flask_nsfw shell

Again, if you don't pass dev as first argument, you'll be stuck with the original version of the app code.

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.