Created
November 6, 2012 20:38
-
-
Save leppert/4027362 to your computer and use it in GitHub Desktop.
AWS Slanger Setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Update all packages on the server | |
sudo yum -y update | |
# Set the timezone | |
sudo ln -sf /usr/share/zoneinfo/America/New_York \/etc/localtime | |
# Install Dev Tools | |
sudo yum -y groupinstall 'Development Tools' | |
################################################### | |
# Install Redis / https://gist.github.com/2776679 # | |
################################################### | |
# Download gist and run | |
wget https://raw.github.com/gist/2776679/e11cd22f41e6cab71fe621b1f5a1377ff3af01ab/install-redis.sh | |
chmod 777 install-redis.sh | |
./install-redis.sh | |
################################################################################### | |
# Install Ruby 1.9.3 / https://forums.aws.amazon.com/thread.jspa?messageID=389084 # | |
################################################################################### | |
sudo yum -y install ruby19 ruby19-devel sqlite-devel | |
################### | |
# Install Slanger # | |
################### | |
gem1.9 install --no-rdoc --no-ri bundler json slanger | |
########## | |
# Launch # | |
########## | |
redis-server &> /dev/null & | |
slanger --app_key $READING_SLANGER_KEY --secret $READING_SLANGER_SECRET | |
######################## | |
# Additional Reference # | |
######################## | |
# https://gist.github.com/2307692 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment