Last active
February 17, 2016 19:10
-
-
Save abythell/0dfcb28f67f9db45e8cb to your computer and use it in GitHub Desktop.
Bash script to install Thingspeak server on Ubuntu 12.04LTS using rvm.
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 | |
# Install Thingspeak server on Ubuntu 12.04 LTS with rvm. | |
# Andrew Bythell <abythell@ieee.org> | |
# Install required packages | |
sudo apt-get -y upgrade | |
sudo apt-get -y install build-essential mysql-server mysql-client libmysqlclient-dev | |
sudo apt-get -y install libxml2-dev libxslt-dev git-core curl rubygems | |
## Install rvm | |
gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3 | |
\curl -sSL https://get.rvm.io | bash -s stable | |
source ~/.rvm/scripts/rvm | |
rvm install ruby-2.1.0 | |
## Install thingspeak | |
git clone https://github.com/iobridge/thingspeak.git | |
cd thingspeak | |
gem install minitest -v '4.7.5' | |
gem install json -v '1.8.1' | |
bundle install | |
cp config/database.yml.example config/database.yml | |
rake db:create | |
rake db:schema:load | |
rails server |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment