Last active
August 29, 2015 14:13
-
-
Save sauloperez/2154d16c918294b09821 to your computer and use it in GitHub Desktop.
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
# 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 [email protected]: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 [email protected]: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 [email protected]:teambox/teambox-frontend.git | |
cd teambox-frontend | |
make setup |
Line 22 needs sudo
cd ..
after line 25 lool
cd Teambox-hosted
after cloning hosted? :B
install nodejs before bundle exec rake db:setup
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
Run
source ~/.rvm/scripts/rvm
just beforervm install 2.1.2
.