gabimelo / flask-boilerplate Goto Github PK
View Code? Open in Web Editor NEWMinimal setup for building a Python API running with Flask and MongoDB, inside Docker Containers
License: MIT License
Minimal setup for building a Python API running with Flask and MongoDB, inside Docker Containers
License: MIT License
$ docker-compose up
Creating build_docker_api_1 ... done
Attaching to build_docker_api_1
api_1 | /usr/lib/python2.7/site-packages/supervisor/options.py:461: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a "-c" argument specifying an absolute path to a configuration file for improved security.
api_1 | 'Supervisord is running as root and it is searching '
api_1 | 2019-08-06 17:40:37,201 CRIT Supervisor is running as root. Privileges were not dropped because no user is specified in the config file. If you intend to run as root, you can set user=root in the config file to avoid this message.
api_1 | 2019-08-06 17:40:37,202 INFO supervisord started with pid 1
api_1 | 2019-08-06 17:40:38,204 INFO spawned: 'nginx' with pid 8
api_1 | 2019-08-06 17:40:38,205 INFO spawnerr: can't find command '/usr/local/bin/uwsgi'
api_1 | nginx: [warn] conflicting server name "" on 0.0.0.0:80, ignored
api_1 | 2019-08-06 17:40:39,214 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
api_1 | 2019-08-06 17:40:39,214 INFO spawnerr: can't find command '/usr/local/bin/uwsgi'
api_1 | 2019-08-06 17:40:41,216 INFO spawnerr: can't find command '/usr/local/bin/uwsgi'
curl localhost:1337
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 162 100 162 0 0 18000 0 --:--:-- --:--:-- --:--:-- 18000
can not run~~~
HI, thanks for the boilerplate. It works perfectly on Ubuntu machine.
There happens to be my team mate using windows machine.
Here is the stack trace.
app_1 | your mercy for graceful operations on workers is 60 seconds app_1 | mapped 218760 bytes (213 KB) for 2 cores app_1 | *** Operational MODE: preforking *** app_1 | ImportError: No module named 'src' app_1 | unable to load app 0 (mountpoint='') (callable not found or import error)
I have a need to use the same image to serve several flask applications.
How can I adapt this image to do this?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.