Re: [web2py] Re: horizontal scaling question

2018-01-05 Thread Chinh Dang
How does web2py select a database to connect to based on the http request content? Is it feasible to connect to different databases depending on whether it is a read request or a write request? Can you provide example on how to do this? On Fri, Jan 5, 2018 at 6:35 PM, Anthony

[web2py] Re: 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128)

2018-01-05 Thread Dave S
On Friday, January 5, 2018 at 11:41:19 AM UTC-8, Alexey Zaytsev wrote: [pictographs of screens elided] I take you have users with names that require UTF-8 or code pages, rather than mere ASCII. It might be useful information to know if those are in UTF-8 or if not which code pages (we can

[web2py] Re: horizontal scaling question

2018-01-05 Thread Anthony
Do you have doubts about whether it would work? Seems fairly straightforward. On Friday, January 5, 2018 at 3:59:29 PM UTC-5, CDA wrote: > > > Below is an excerpt about horizontal scaling from Chapter 13 in the book. > Has any one successfully implemented this using web2py? > > It is also

[web2py] Re: web2py gunicorn dockerfile

2018-01-05 Thread 黄祥
trying to modify but got another error *e.g.* *step i took on play-with-docker.com* cat < Dockerfile FROM python:2.7 RUN apt update && \ apt install -y unzip wget gunicorn RUN groupadd -r web2py && \ useradd -m -r -g web2py web2py USER web2py RUN cd /home/web2py/ && \ wget -c

[web2py] horizontal scaling question

2018-01-05 Thread CDA
Below is an excerpt about horizontal scaling from Chapter 13 in the book. Has any one successfully implemented this using web2py? It is also possible to connect to different databases depending on the requested action or controller. In a master-slave database configuration, *some* *action

[web2py] 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128)

2018-01-05 Thread Alexey Zaytsev

[web2py] Re: web2py gunicorn dockerfile

2018-01-05 Thread Alex Beskopilny
Hi set WORKDIR in Dockerfile .. WORKDIR /home/site/web2py EXPOSE 80 CMD . /home/.. .. docker run 3001:80 image-name On Friday, January 5, 2018 at 5:45:04 AM UTC+3, 黄祥 wrote: > > just wondering why gunicorn dockerfile with web2py/anyserver.py is not > work when use with python:2.7

[web2py] Re: Problem w/ v2.16.1 & python3 & rest api

2018-01-05 Thread Scott Hunter
I had to use a fresh copy of web2py in order to try it with python2 (otherwise I get an error complaining about unsupported pickle protocol), but that worked, including supporting basic authentication & an actual RESTful API. So I'd definitely concur about this being a gap in Python3 coverage.