If you don't have homebrew installed - get homebrew here
Then run: brew install elasticsearch
Update the elasticsearch configuration file in /usr/local/etc/elasticsearch/elasticsearch.yml.
If you don't have homebrew installed - get homebrew here
Then run: brew install elasticsearch
Update the elasticsearch configuration file in /usr/local/etc/elasticsearch/elasticsearch.yml.
##Introduction to Background Workers
#####Repository
git clone https://github.com/turingschool-examples/loremore.git background_workers
| # Set nginx base image | |
| FROM nginx | |
| # Copy custom configuration file from the current directory | |
| COPY nginx.conf /etc/nginx/nginx.conf |
| --- | |
| - name: Install netdata on a Linux host | |
| hosts: all | |
| become: true | |
| tasks: | |
| - name: Install depdendencies | |
| yum: | |
| name: "{{item}}" | |
| state: present |
| # /etc/nginx/sites-available/www.valentin-deville.eu | |
| # Redirection de http sur https | |
| server { | |
| listen 80; | |
| server_name www.valentin-deville.eu; | |
| rewrite ^ https://$server_name$request_uri? permanent; | |
| } |
| --- | |
| # Deploy rails app from localhost to remote servers | |
| - name: Set up AWS infrastructure | |
| hosts: localhost | |
| connection: local | |
| roles: | |
| - setup_aws | |
| - name: Package app |
| redis: | |
| image: redis:3.0.5 | |
| expose: | |
| - 6379 | |
| volumes: | |
| - redis:/var/lib/redis/data | |
| web: | |
| build: . | |
| command: bundle exec rails s -p 3000 -b '0.0.0.0' | |
| volumes: |
| INSTALL JAVA | |
| $ sudo apt-get update && sudo apt-get install default-jre | |
| INSTALL ELASTIC SEARCH https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-repositories.html | |
| $ wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - | |
| $ echo "deb https://packages.elastic.co/elasticsearch/2.x/debian stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-2.x.list | |
| $ sudo apt-get update && sudo apt-get install elasticsearch | |
| $ sudo update-rc.d elasticsearch defaults 95 10 | |
| $ sudo service elasticsearch restart | |
| $ sudo service elasticsearch status |