I hereby claim:
- I am mjquinlan2000 on github.
- I am mjquinlan2000 (https://keybase.io/mjquinlan2000) on keybase.
- I have a public key ASAyaO6assqqYm5tXg0gBZjPGt9VM32Vf79t7tIJCUGWSgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
FROM elixir:1.5.2 | |
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - && \ | |
apt-get install -y nodejs && \ | |
mix local.hex --force && \ | |
mix local.rebar --force | |
ENV MIX_ENV prod | |
CMD ["bin/bash"] |
[Unit] | |
Description=my_app | |
After=network.target | |
[Service] | |
User=ubuntu | |
Group=ubuntu | |
Restart=on-failure | |
Type=forking |
namespace :elasticsearch do | |
task import: :environment do | |
Organization.all.each do |organization| | |
organization.index.types.each do |type| | |
model = type.adapter.name.constantize | |
data = model.all_data_for organization | |
type.import data | |
end |
# Make sure to add this to your Gemfile | |
gem 'faraday' |