1.- Create an appfog acount in https://www.appfog.com/ 2.- Login in 3,- create a python app. 4.- the name of application is, for example, 'NAME_APP' (url: http://NAME_APP.eu01.aws.af.cm/) 5.- in local install 'af' (gem install af) 6.- af login 7.- modify wsgi.py: Introducir código aquí...#!/usr/bin/env python # -*- coding: utf-8 -*-
""" This file is part of the web2py Web Framework Copyrighted by Massimo Di Pierro <[email protected]> License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html) This is a WSGI handler for Apache Requires apache+mod_wsgi. In httpd.conf put something like: LoadModule wsgi_module modules/mod_wsgi.so WSGIScriptAlias / /path/to/wsgihandler.py """ # change these parameters as required DEV = False if DEV: LOGGING = True PASS = 'your_local_pass' PORT= 8000 else: LOGGING = False PASS = 'your_remote_pass' PORT= 80 SOFTCRON = False import sys import os path = os.path.dirname(os.path.abspath(__file__)) os.chdir(path) sys.path = [path] + [p for p in sys.path if not p == path] sys.stdout = sys.stderr import gluon.main if LOGGING: application = gluon.main.appfactory(wsgiapp=gluon.main.wsgibase, logfilename='httpserver.log', profilerfilename=None) else: application = gluon.main.wsgibase if SOFTCRON: from gluon.settings import global_settings global_settings.web2py_crontype = 'soft' from gluon.main import save_password save_password(PASS,PORT) 7.- in your web2py local folder command af update 'name_app' 8.- wait 9.- visit http://NAME_APP.eu01.aws.af.cm/ excuse me for my english El sábado, 4 de enero de 2014 08:41:13 UTC+1, webpypy escribió: > > > Hi, > > Please, translate this > > EXPLANATION: http://jallander.wordpress.com/2014/01/03/web2py-en-appfog/ >>> >>> > to English. > > Regards, > > Ashraf > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

