This gem allows to store carrierwave
uploads in the database, eg. on platforms with ephemeral filesystems like Heroku.
# In: Gemfile
gem 'carrierwave-blob', git: "https://gist.github.com/f1dc8c75d67b92b23a55.git"
This gem allows to store carrierwave
uploads in the database, eg. on platforms with ephemeral filesystems like Heroku.
# In: Gemfile
gem 'carrierwave-blob', git: "https://gist.github.com/f1dc8c75d67b92b23a55.git"
# Installation | |
# ------------ | |
# | |
# $ ssh -i ~/.ssh/yourkey.pem user@ec2-12-34-56-78.compute-1.amazonaws.com | |
# | |
# $ sudo apt-get install curl -y | |
# $ curl -# -L http://www.opscode.com/chef/install.sh | sudo bash -s -- | |
# | |
# $ time curl https://gist.githubusercontent.com/karmi/10019159/raw/chef-base-ruby-elasticsearch-server.rb | sudo chef-apply -s |
tmp/ |
tmp/ |
# Create a local proxy for <http://download.elasticsearch.org> | |
# ============================================================ | |
# | |
# This setup and Nginx configuration provides a local webserver which intercepts requests | |
# to <http://download.elasticsearch.org> and serves a local file instead, | |
# facilitating and speeding up demonstrations at conferences, meetups, etc. | |
# | |
# | |
# 1. Create directories for Nginx: | |
# |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv = "Content-Type" content = "text/html; charset=utf-8" /> | |
<title>Elasticsearch stats analyzer</title> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> | |
<script type="text/javascript" src="rules.js"></script> | |
<script type="text/javascript" src="stats.js"></script> | |
<script type="text/javascript" src="parser.js"></script> | |
<script type="text/javascript"> |
.DS_Store | |
tmp/ |
*.gem | |
*.rbc | |
.bundle | |
.config | |
.yardoc | |
Gemfile.lock | |
coverage | |
doc/ | |
tmp |
# 2013-04-26 11:13:36:010 [DELETE] ("dis_max_test") | |
# | |
curl -X DELETE http://localhost:9200/dis_max_test | |
# 2013-04-26 11:13:36:011 [404] | |
# | |
# { | |
# "error": "IndexMissingException[[dis_max_test] missing]", | |
# "status": 404 | |
# } |