Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/guillaumebriday/rails-elasticsearch-vagrant-ansible-demo
- Owner: guillaumebriday
- Created: 2016-07-28T00:08:44.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-07-28T00:09:39.000Z (over 8 years ago)
- Last Synced: 2024-12-18T15:08:26.009Z (13 days ago)
- Topics: elasticsearch, example, rails, ruby, vagrant
- Language: Ruby
- Homepage: https://guillaumebriday.fr/ruby-on-rails-recherche-avec-elasticsearch-ansible-et-vagrant
- Size: 25.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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!
```