1 / 16

First Indico Workshop

First Indico Workshop. Hands-on: install Mobile. 27 -29 May 2013 CERN. Alberto Resco Pérez. 4 ThINGS. The Indico Hacker Toolkit. A shell Python (>=2.6) Virtualenv MongoDB. Installing mongodb. $ sudo apt-get install mongodb. $ sudo brew install mongodb.

delano
Download Presentation

First Indico Workshop

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. First Indico Workshop Hands-on: install Mobile 27-29 May 2013 CERN Alberto Resco Pérez

  2. 4ThINGS The Indico Hacker Toolkit • A shell • Python (>=2.6) • Virtualenv • MongoDB

  3. Installing mongodb $sudo apt-get install mongodb $sudo brew install mongodb

  4. Creating the Virtualenv $sudo apt-get install python-virtualenv $sudo brew install python $sudo pip install virtualenv $virtualenvindicomobile Installingdistribute.............done. Installingpip...............done.

  5. Activate virtualenv $cd indicomobile $source ./bin/activate (indico-mobile)$

  6. Install – 1st step (indico-mobile)$git clone http://github.com/indico/indico-mobile src Cloning into 'src'... ... Resolving deltas: 100% (962/962), done. (indico-mobile)$cd src (indico-mobile)$pip install -r requirements.txt

  7. Install – 2nd step – configure (indico-mobile)$vim settings.conf SERVER = 'localhost' SERVER_PORT = 8080 DEBUG = False TIMEZONE = 'Europe/Zurich’ CACHE_TTL = 3600 CACHE_TYPE = 'filesystem' CACHE_DIR = '/tmp/mobilecache’ MONGODB_DATABASE = 'indicomobile’ SECRET_KEY = 'aaaaa’ INDICO_URL = 'http://indico.cern.ch/’ API_KEY = ’xxxxx’ REQUEST_TOKEN_URL='http://indico.cern.ch/oauth.py/request_token' ACCESS_TOKEN_URL='http://indico.cern.ch/oauth.py/access_token' AUTHORIZE_URL='http://indico.cern.ch/oauth.py/authorize' CONSUMER_KEY='0rYfaVdoXAptxhyX4FzeqZasHvbE9R2zC5O71mbw' CONSUMER_SECRET='0Ke4vyfnhAyARYzUb8HYE4jQyZI9MWpEcdbXPbCQ' :x

  8. Install – 3rd step – run DB $sudo service mongod start $mongod &

  9. Starting the Web Server Note: This is a development server. Don’t use it in production! Try it! http://localhost/ (indico-mobile)$sudo python run.py * Running on http://localhost:8080/

  10. Login to indico mobile

  11. production

  12. Choose a good Web Server Apache? Nginx? We use uwsgi + supervisor + nginx $sudo apt-get install nginx $sudo brew install nginx $sudoeasy_installsupervisor uwsgi

  13. configuration Main configuration files you must check! nginx.conf general configuration of nginx supervisord.confgeneral configuration of supervisor

  14. Edit configuration files $vim /etc/nginx/nginx.conf $vim /usr/local/etc/nginx/nginx.conf $vim /etc/supervisord.conf

  15. Start the servers $sudo service supervisor start $sudo service nginx start $sudosupervisord $sudonginx

  16. Questions? Alberto resco http://github.com/arescope @arescope arescope@cern.ch

More Related