Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/guillaumebriday/rails-elasticsearch-vagrant-ansible-demo


https://github.com/guillaumebriday/rails-elasticsearch-vagrant-ansible-demo

elasticsearch example rails ruby vagrant

Last synced: 9 days ago
JSON representation

Awesome Lists containing this project

README

        

# Rails-elasticsearch-vagrant-ansible-demo

Exemple de l'intégration d'ElasticSearch, Vagrant et Ansible dans avec une application Ruby On Rails.

## Installation

Rails :
```
$ git clone [email protected]:ZiiCEagle/Rails-elasticsearch-vagrant-ansible-demo.git
$ cd Rails-elasticsearch-vagrant-ansible-demo
$ bundle
$ bundle exec rake db:migrate
```

Vagrant :
```
$ vagrant up
```

## Lancer le serveur rails

```
$ bundle exec rails s
```

## Créer les index pour ElasticSearch

```
$ Article.__elasticsearch__.create_index! force: true
$ Article.import
$ Article.__elasticsearch__.refresh_index!
```