Pythonanywhere is easier. AWS provide much more stuff and it a de-facto 
standard.


On Monday, 16 May 2016 08:28:01 UTC-5, Ron Chatterjee wrote:
>
> This may be a novice question, but how is it any different to host the app 
> in AWS as oppose to lets say python anywhere? Is AWS is more preferred due 
> to auto scaling that other hosting may not provide?
>
>
> On Sunday, May 15, 2016 at 4:36:49 PM UTC-4, 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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to