I've been trying to understand how to setup systems from
the ground up on Ubuntu. I just installed redis
onto
the box and here's how I did it and some things to look
out for.
To install:
Install ElasticSearch and Java
1 wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.0.1.deb
2 sudo dpkg -i elasticsearch-1.0.1.deb
3 sudo update-rc.d elasticsearch defaults 95 10
4 sudo add-apt-repository ppa:webupd8team/java
5 sudo apt-get update
6 sudo apt-get install oracle-java7-installer
7 java -version
#application_helper.rb | |
def s3_upload_policy_document(filename) | |
ret = {"expiration" => 30.minutes.from_now.utc.xmlschema, | |
"conditions" => [ | |
{"bucket" => ENV['S3BUCKET']}, | |
["starts-with", "$key", filename], | |
{"acl" => "private"}, | |
{"success_action_status" => "200"}, |