SocketStream

by paulbjensen
19 deployments · 1 still active · last rev. 5 years ago

Sets up an application server for SocketStream and runs a test application on port 3000.

Compatible with: No distros currently supported
						#!/bin/sh

sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get install build-essential automake git-core curl wget libssl-dev -y

mkdir /root/downloads
cd /root/downloads
wget http://redis.googlecode.com/files/redis-2.2.11.tar.gz
tar -xzf redis-2.2.11.tar.gz
cd redis-2.2.11
make
sudo make install
env redis-server > /tmp/redis.log 2>&1 &

cd ..

wget http://nodejs.org/dist/node-v0.4.9.tar.gz
tar -xzf node-v0.4.9.tar.gz
cd node-v0.4.9
./configure
make
sudo make install

cd ..

curl http://npmjs.org/install.sh | clean=no sh

sudo npm install socketstream -g

cd ..

mkdir /root/apps
cd /root/apps

socketstream new test
cd test
socketstream start

exit 0