Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# Some required stuff
sudo apt-get install -y git build-essential curl
# Install RVM and Ruby 2.1.2
gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
curl -sSL https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
rvm install 2.1.2
rvm use --default 2.1.2
# Install Ejabberd dependencies
wget http://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb
sudo dpkg -i erlang-solutions_1.0_all.deb
sudo apt-get update
sudo apt-get install -y erlang libexpat1 libexpat1-dev
# Install Ejabberd
git clone -b master-without-new-chat git@github.com:teambox/ejabberd.git
cd ejabberd
./configure --prefix=/usr/local
make
sudo make install
cp ejabberd.yml.example /usr/local/etc/ejabberd/ejabberd.yml
sudo ln -s /usr/local/sbin/ejabberdctl /usr/local/bin/ejabberdctl
# Install Teambox-hosted dependencies
sudo apt-get install -y libxml2 imagemagick libxslt-dev libxml2-dev mysql-server libmysqlclient-dev
gem install bundler
git clone -b master-without-new-chat git@github.com:teambox/Teambox-hosted.git
cd Teambox-hosted
bundle install
bundle exec rake db:setup
# Install teambox-frontend dependencies
curl -sL https://deb.nodesource.com/setup | sudo bash -
sudo apt-get install -y nodejs
git clone -b master-without-new-chat git@github.com:teambox/teambox-frontend.git
cd teambox-frontend
make setup
@Morantron

This comment has been minimized.

Copy link

@Morantron Morantron commented Jan 16, 2015

Run source ~/.rvm/scripts/rvm just before rvm install 2.1.2.

@Morantron

This comment has been minimized.

Copy link

@Morantron Morantron commented Jan 16, 2015

Line 22 needs sudo

@Morantron

This comment has been minimized.

Copy link

@Morantron Morantron commented Jan 16, 2015

cd .. after line 25 lool

@Morantron

This comment has been minimized.

Copy link

@Morantron Morantron commented Jan 16, 2015

cd Teambox-hosted after cloning hosted? :B

@Morantron

This comment has been minimized.

Copy link

@Morantron Morantron commented Jan 16, 2015

install nodejs before bundle exec rake db:setup

@Morantron

This comment has been minimized.

Copy link

@Morantron Morantron commented Jan 16, 2015

cd .. before cloning teambox frontend as well :B

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment