Created
May 30, 2012 18:06
-
-
Save darkwing/2838005 to your computer and use it in GitHub Desktop.
Zamboni + Vagrant Updater
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/sh | |
# The purpose of this file is to document the process of upgrading a vagrant | |
# machine for zamboni, since the VM defaults seem well out of date | |
# Run the post-install | |
chmod +x postinstall.sh | |
sudo ./postinstall.sh | |
# Create a temp folder for downloads | |
mkdir temp && cd temp | |
# First, install ElasticSearch | |
sudo apt-get install unzip | |
curl -L -O http://cloud.github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.17.2.zip | |
unzip elasticsearch-0.17.2.zip | |
mv elasticsearch-0.17.2 elasticsearch | |
rm elasticsearch*.zip | |
sudo mv elasticsearch/ /usr/local/elasticsearch/ | |
cd /usr/local/bin | |
sudo ln -s /usr/local/elasticsearch/bin/ elasticsearch | |
export PATH=$PATH:/usr/local/elasticsearch/bin/ | |
# Upgrade the redis-server | |
# *may* need to run "sudo apt-get remove redis-server" manually... | |
cd ~/temp | |
wget http://redis.googlecode.com/files/redis-2.4.0.tar.gz | |
cd redis-2.4 | |
sudo make | |
sudo make install | |
sudo add-apt-repository ppa:cmsj/redis-stable | |
sudo apt-get update | |
sudo apt-get install redis-server | |
# Reindex ElasticSearch | |
cd ~/project | |
./manage.py cron reindex_addons | |
# Install NodeJS and LESS | |
sudo apt-get install g++ | |
cd ~/temp | |
git clone https://github.com/joyent/node.git | |
cd node/ | |
sudo ./configure | |
sudo make | |
sudo make install | |
cd .. | |
git clone https://github.com/cloudhead/less.js.git | |
sudo mv less.js/ /usr/local/ | |
cd /usr/local/bin/ | |
sudo ln -s ../less.js/bin/lessc | |
# Install GetText | |
cd ~/temp | |
sudo apt-get install gettext | |
# Run asset compressor so the site looks as it should | |
./manage.py --settings=settings_local_mkt compress_assets |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment