Steps with explanations to set up a server using:
- Virtualenv
- Virtualenvwrapper
- Django
- Gunicorn
| # -*- 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)]), |
| # 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. |
| * 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/" |
| #!/usr/bin/env php | |
| <?php | |
| /** | |
| * Zend Framework (http://framework.zend.com/) | |
| * | |
| * @link http://github.com/zendframework/zf2 for the canonical source repository | |
| * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) | |
| * @license http://framework.zend.com/license/new-bsd New BSD License | |
| */ |
| <?php | |
| /* | |
| +------------------------------------------------------------------------+ | |
| | Phalcon Framework | | |
| +------------------------------------------------------------------------+ | |
| | Copyright (c) 2011-2012 Phalcon Team (http://www.phalconphp.com) | | |
| +------------------------------------------------------------------------+ | |
| | This source file is subject to the New BSD License that is bundled | | |
| | with this package in the file docs/LICENSE.txt. | |
| class CacheBaseHandler(tornado.web.RequestHandler): | |
| def prepare(self): | |
| cached = self.application.db.cache.find_one({"slug": self.request.path}) | |
| if cached is not None: | |
| self.write(cached["content"]) | |
| self.finish() | |
| def render_string(self, template_name, **kwargs): | |
| html_generated = \ |
| import SimpleHTTPServer | |
| class CORSHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): | |
| def send_head(self): | |
| """Common code for GET and HEAD commands. | |
| This sends the response code and MIME headers. | |
| Return value is either a file object (which has to be copied | |
| to the outputfile by the caller unless the command was HEAD, | |
| and must be closed by the caller under all circumstances), or |
| #!/bin/sh | |
| # | |
| # Runs during git flow release start | |
| # | |
| # Positional arguments: | |
| # $1 Version | |
| # | |
| # Return VERSION - When VERSION is returned empty gitflow | |
| # will stop as the version is necessary | |
| # |