Hi, has anyone successfully set up ELB with web2py? I've been trying and struggling to get very far.
I made it as far as 'web2py/handlers/wsgihandler.py web2py' in the instructions below and can't get any further - the error I get is 'Running from the wrong folder' Looking at the code in wsgihandler.py it's looking for the applications folder - which exists. I've tried various things to get around it but I can't see what else it could be. I'm installing onto a fresh Ubuntu 14.04 box As I go I want to create a complete set of instructions which I'll post back up so anyone else later can get things going a bit more smoothly. Thanks! On Sunday, 15 May 2016 22:36:49 UTC+2, Massimo Di Pierro wrote: > > Below are instructions for creating an AWS Elastic Beanstalk instance. > > Instructions are based on this: > > > http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-django.html > > Anybody knows how to get Amazon to publish the instructions? > > > Massimo > > > > $ pip install awsebcli > > $ pip install virualenv > > $ wget http://web2py.com/examples/static/web2py_src.zip > > $ virtualenv eb-virt > > $ source eb-virt/bin/activate > > (eb-virt)$ mkdir ebweb2py > > (eb-virt)$ cd ebweb2py > > (eb-virt)$ pip freeze > requirements.txt > > (eb-virt)$ deactivate > > $ unzip ../web2py_src.zip > > $ web2py/handlers/wsgihandler.py web2py > > $ mkdir .ebextensions > > $ echo <<EOF > > option_settings: > > aws:elasticbeanstalk:container:python: > > WSGIPath: web2py/wsgihandler.py > > EOF > .ebextensions/web2py.config > > > At thi point the folder structure should be > > ebweb2py: > > .ebextensions/ > > web2py.config > > requirements.txt > > web2py/ > > wsgihandler.py > > web2py.py > > ... > > > $ eb init -p python2.7 web2py-tutorial > > > Get security credentials from > https://console.aws.amazon.com/iam/home#security_credential > > (specifically a pair of aws-access-id and aws-secret-key). > > > $ eb init > > You have not yet set up your credentials or your credentials are incorrect > > You must provide your credentials. > > (aws-access-id): [...] > > (aws-secret-key): [...] > > ... > > Type a keypair name. > > (Default is aws-eb): [...] > > Generating public/private rsa key pair. > > Enter passphrase (empty for no passphrase): [...] > > > $ eb create web2py-env > > $ eb open > -- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.