Comments (2)
Sorry about that.. should be fixed in ec749b2
from foodtrucks.
Hello @prakhar1989 !
Thank you very much for this application. I've only started to learn Docker and I've found your FoodTrucks and corresponding Habr blog very useful.
But I faced the same issue :( Search is working fine but no points on the map at all!
I'v got similar feedback as @TuringTested from Docker during image build:
Step 9/13 : RUN npm install ---> Running in 43a136047a20 npm WARN [email protected] No repository field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
and also some more warnings related to REACT:
WARNING in ./static/build/main.js from UglifyJs Condition always true [./~/component-emitter/index.js:6,4] Side effects in initialization of unused variable rootInstance [./~/react-dom/cjs/react-dom.development.js:14449,6] Side effects in initialization of unused variable props [./~/react-dom/cjs/react-dom.development.js:16481,18] Side effects in initialization of unused variable _props [./~/react-dom/cjs/react-dom.development.js:16503,18] Side effects in initialization of unused variable props [./~/react-dom/cjs/react-dom.development.js:16531,12] Condition left of && always true [./~/react-dom/cjs/react-dom.development.js:23483,16] Condition always true [./~/react-dom/cjs/react-dom.development.js:23476,8] Condition always true [./~/react-dom/cjs/react-dom.development.js:23505,12] Condition always true [./~/react-dom/cjs/react-dom.development.js:23519,12] Side effects in initialization of unused variable hydrationCallbacks [./~/react-dom/cjs/react-dom.development.js:24625,6] Side effects in initialization of unused variable IsSomeRendererActing$1 [./~/react-dom/cjs/react-dom.development.js:24574,4]
...
...
and dependency related warning: urllib3
Successfully tagged vallsur/foodtrucks-web:latest app.py node_modules package-lock.json package.json requirements.txt static templates webpack.config.js root@c8fe7dda5a69:/opt/flask-app# python3 app.py /usr/local/lib/python3.6/dist-packages/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (1.26.2) or chardet (3.0.4) doesn't match a supported version! RequestsDependencyWarning)
- Serving Flask app "app" (lazy loading)
- Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead. - Debug mode: off
- Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)
App and search is working fine:
10.10.10.16 - - [16/Jan/2021 22:12:23] "GET / HTTP/1.1" 200 - 10.10.10.16 - - [16/Jan/2021 22:12:23] "GET /static/styles/main.css HTTP/1.1" 200 - 10.10.10.16 - - [16/Jan/2021 22:12:23] "GET /static/build/main.js HTTP/1.1" 200 - 10.10.10.16 - - [16/Jan/2021 22:12:25] "GET /static/icons//android-icon-192x192.png HTTP/1.1" 200 - 10.10.10.16 - - [16/Jan/2021 22:12:44] "GET /search?q=burgers HTTP/1.1" 200 -
I tried different Elastic Search versions (I thaught it could be the reason) but all gave the same result:
no points on the map at all ;(
root@c8fe7dda5a69:/opt/flask-app# curl es:9200 { "name" : "Scarlet Spiders", "cluster_name" : "elasticsearch", "version" : { "number" : "2.1.1", "build_hash" : "40e2c53a6b6c2972b3d13846e450e66f4375bd71", "build_timestamp" : "2015-12-15T13:05:55Z", "build_snapshot" : false, "lucene_version" : "5.3.1" }, "tagline" : "You Know, for Search" }
or
root@b377b3d47c5d:/opt/flask-app# curl es:9200 { "name" : "NNmhf-i", "cluster_name" : "docker-cluster", "cluster_uuid" : "pAQBFnavRTWjX18ad-whGw", "version" : { "number" : "6.3.2", "build_flavor" : "default", "build_type" : "tar", "build_hash" : "053779d", "build_date" : "2018-07-20T05:20:23.451332Z", "build_snapshot" : false, "lucene_version" : "7.3.1", "minimum_wire_compatibility_version" : "5.6.0", "minimum_index_compatibility_version" : "5.0.0" }, "tagline" : "You Know, for Search" }
Please consider what am I doing wrong ?
Thank you in advance!
from foodtrucks.
Related Issues (20)
- docker build **was** failing HOT 3
- docker-compose up fails because elasticsearch does not spin up in time HOT 2
- Docker build fails on symbolic link
- Docker build fails at RUN npm install HOT 3
- Python app can not connect to DataSF HOT 3
- Optimize RUN commands
- Docker-compose fails HOT 1
- web app doesn't work HOT 2
- La geolocalización no me corre
- Error with docker-compose
- Problem with docker compose HOT 1
- Map interaction does not work HOT 1
- Docker Build fails: No module markupsafe
- Easy and road transport
- Web container cannot contact es using docker-compose HOT 1
- Curl suggestion didn't work
- Containter create in wrong order HOT 1
- App does not display correctly in Firefox HOT 3
- App does not display correctly in Chrome localhost HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from foodtrucks.