Skip to content

Instantly share code, notes, and snippets.

@quentindecock
Created December 4, 2013 20:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save quentindecock/7795046 to your computer and use it in GitHub Desktop.
Save quentindecock/7795046 to your computer and use it in GitHub Desktop.
Migration script for Fiance / ES
#!/bin/zsh
RAILS_ENV=production bundle exec rake 'populate_index[clicks_share_link,1000]' && \
RAILS_ENV=production bundle exec rake 'populate_index[comments_on_facebook_post,1000]' && \
RAILS_ENV=production bundle exec rake 'populate_index[facebook_comment_plugin_update,1000]' && \
RAILS_ENV=production bundle exec rake 'populate_index[favorites_tweet,1000]' && \
RAILS_ENV=production bundle exec rake 'populate_index[likes_comment_on_facebook_post,1000]' \
RAILS_ENV=production bundle exec rake 'populate_index[takes_multiple_choice_action,1000]' && \
RAILS_ENV=production bundle exec rake 'populate_index[likes_post_on_facebook,1000]' && \
RAILS_ENV=production bundle exec rake 'populate_index[nexts_multiple_choice_action,1000]' && \
RAILS_ENV=production bundle exec rake 'populate_index[rates_challenge_response,1000]' && \
RAILS_ENV=production bundle exec rake 'populate_index[replies_to_tweet,1000]' && \
RAILS_ENV=production bundle exec rake 'populate_index[reshare_on_facebook,1000]' && \
RAILS_ENV=production bundle exec rake 'populate_index[retweets,1000]' && \
RAILS_ENV=production bundle exec rake 'populate_index[shares_media_on_facebook,1000]' && \
RAILS_ENV=production bundle exec rake 'populate_index[shares_media_on_twitter,1000]' && \
RAILS_ENV=production bundle exec rake 'populate_index[skips_challenge_action,1000]' && \
RAILS_ENV=production bundle exec rake 'populate_index[skips_multiple_choice_action,1000]' && \
RAILS_ENV=production bundle exec rake 'populate_index[starts_challenge_action,1000]' && \
RAILS_ENV=production bundle exec rake 'populate_index[takes_challenge_action,1000]' && \
RAILS_ENV=production bundle exec rake 'populate_index[views_media,1000]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment