How can I give a path to an external csv file in Javascript in yii2?

I am using yii2, and in that I need to use temperatures.csv file to get a graph, while using normal php its working fine but in yii2, the path to the csv file causes an error. My view file code is this: <div id=”graphdiv3″ style=”width:500px; height:300px;”></div> <script type=”text/javascript”> var filename = “Date,Temperature\n” + “2008-05-07,75\n” +…

Details

Failed to open TCP connection to localhost:9200 – Rails on Docker

I ‘m want to run ElasticSearch on docker and connect rails with it. this is my docker-compose.yml file version: ‘3’ services: db: image: mysql:5.7 restart: always environment: MYSQL_ROOT_PASSWORD: P@ssw0rd MYSQL_DATABASE: chatsystem MYSQL_USER: root MYSQL_PASSWORD: P@ssw0rd ports: – “3307:3306” es01: image: docker.elastic.co/elasticsearch/elasticsearch:7.4.2 container_name: es01 environment: – node.name=es01 – cluster.name=es-docker-cluster – discovery.seed_hosts=es02,es03 – cluster.initial_master_nodes=es01,es02,es03 – bootstrap.memory_lock=true -…

Details