Created
August 30, 2010 16:48
-
-
Save ancorcruz/557664 to your computer and use it in GitHub Desktop.
Instalación y configuración de servidor de comet
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
#Importante: resetear el single_access_token de los usuarios que no tengan | |
cd /var/www/apps/pareja10/current | |
script/console staging (o production) | |
User.find_each do |u| | |
unless u.single_access_token? | |
u.reset_single_access_token | |
u.save(false) | |
end | |
end | |
# INSTALAR: orbited | |
sudo aptitude install build-essential python python-dev python-setuptools | |
sudo easy_install twisted | |
sudo easy_install orbited | |
Si la instalación de orbited falla al intentar instalar demjson, hacer: | |
wget http://pypi.python.org/packages/source/d/demjson/demjson-1.4.tar.gz#md5=6f6c88bfe2443390230109c709243fcd | |
tar xvzf demjson-1.4.tar.gz | |
cd demjson-1.4 | |
sudo python setup.py install | |
sudo easy_install orbited | |
sudo aptitude install python-cjson | |
# INSTALAR: ejabberd | |
sudo aptitude install ejabberd | |
sudo aptitude install libcurl4-gnutls-dev | |
sudo gem install curb activesupport | |
configurar ejabberd (sudo vi /etc/ejabberd/ejabberd.cfg) | |
sudo cp /var/www/apps/pareja10/current/support/ejabberd_authentication.rb /etc/ejabberd/authentication.rb | |
sudo chown ejabberd:ejabberd /etc/ejabberd/authentication.rb | |
sudo chmod +x /etc/ejabberd/authentication.rb | |
configurar la url a la aplicación para los request (sudo vi /etc/ejabberd/authentication.rb) | |
sudo /etc/init.d/ejabberd start | |
# CONFIGURAR: apache | |
configurar apache host (sudo vi /etc/apache/sites-available/pareja10) | |
sudo /etc/init.d/apache reload | |
# CONFIGURAR: orbited | |
adduser --system --no-create-home --disabled-login --disabled-password --group orbited | |
crear el archivo de cofiguración de orbited (/etc/orbited.cfg) | |
sudo mkdir /var/log/orbited | |
sudo chown orbited:orbited /var/log/orbited | |
Tener instalado upstart (apt) | |
Crear un script de upstart (/etc/event.d/orbited) con la siguiente línea: | |
exec /usr/bin/orbited --config=/etc/orbited.cfg | |
sudo /etc/init.d/god stop | |
sudo cp /var/www/apps/pareja10/current/doc/got_init /etc/init.d/god | |
sudo chmod +x /etc/init.d/god | |
sudo /etc/init.d/god start | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment