Steps with explanations to set up a server using:
- Virtualenv
- Virtualenvwrapper
- Django
- Gunicorn
| * Descripción del pase, se debe indicar el motivo del pase e indicar a nivel macro | |
| los cambios enviados. En este sección no se considera un título ya que Redmine coloca por default "Descripción". | |
| h3. Plataforma | |
| * [Aplicación] | |
| # Desplegar los archivo del adjunto neovinetas-v.2.3.rc9.tar.gz | |
| # Quitar del application.ini: | |
| <pre> | |
| resources.export.format.csv.path = APPLICATION_PATH "/../data/csv/" |
| # Start the old vagrant | |
| $ vagrant init centos-6.3 | |
| $ vagrant up | |
| # You should see a message like: | |
| # [default] The guest additions on this VM do not match the install version of | |
| # VirtualBox! This may cause things such as forwarded ports, shared | |
| # folders, and more to not work properly. If any of those things fail on | |
| # this machine, please update the guest additions and repackage the | |
| # box. |
| # -*- coding: utf-8 -*- | |
| import os.path | |
| import string | |
| import sys | |
| def print_buf(counter, buf): | |
| buf2 = [('%02x' % ord(i)) for i in buf] | |
| print '{0}: {1:<39} {2}'.format(('%07x' % (counter * 16)), | |
| ' '.join([''.join(buf2[i:i + 2]) for i in range(0, len(buf2), 2)]), |
| --- | |
| # This has been tested with ansible 1.3 with these commands: | |
| # ansible-playbook -i hosts ansible_conditionals_examples.yaml --extra-vars="hosts=myhosts isFirstRun=false" | |
| # ansible-playbook -i hosts ansible_conditionals_examples.yaml --extra-vars="hosts=myhosts isFirstRun=true" | |
| # ansible-playbook -i hosts ansible_conditionals_examples.yaml --extra-vars="hosts=myhosts" | |
| # NB: The type of the variable is crucial! | |
| - name: Ansible Conditionals Examples | |
| hosts: $hosts | |
| vars_files: |
| [unix_http_server] | |
| file=/var/run/supervisor.sock | |
| chmod=0770 | |
| chown=root:supervisor | |
| [supervisord] | |
| pidfile=/var/run/supervisord.pid | |
| nodaemon=false | |
| logfile=/var/log/supervisord/supervisord.log | |
| loglevel=error |