Richard,
Good point, but then I want to capture the state of my application outside of the infrastructure I need to run it in. This will mean that if the web2py server container goes down, for whatever reason, I can spin up another container, and it will continue from where the previous one left off (or that is something am aiming for). My application, and its data is managed as a simple volume (with necessary replication). I do not know how this will behave if two web2py containers try to use this volume. Again, there are quite a few things I have not explored, but intend to. Was looking for experiences with Docker based web2py deploys, and best practices that the community has evolved.

________________________________________
Kiran Subbaraman
http://subbaraman.wordpress.com/about/

On Mon, 21-09-2015 8:06 PM, Richard Vézina wrote:
Hi Kiran,

Just about having web2py app outside of web2py folder and docker... I think what you want to achieve goes against the idea of containerization... Why not deploy you app inside your container (as you will do if you host your app somewhere for instance, in this case your host is your container) instead of trying to make your container work with something from the outside...

Richard

On Mon, Sep 21, 2015 at 1:17 AM, Kiran Subbaraman <subbaraman.ki...@gmail.com <mailto:subbaraman.ki...@gmail.com>> wrote:

    Hello,
    I need some help with understanding the best way to use Pydev with
    Eclipse, for web2py applications development.
    I have been working with web2py for the past year, and use the
    tools mentioned above for this purpose. Am trying to refine my
    understanding of this toolset, and if there is something more that
    can be done to improve the experience.

    I use Eclipse IDE (Luna Service Release 2 - 4.4.2), with Pydev
    (4.3.0.201508182223), on Windows (10.0.10240), as my web2py
    development environment.

    *Sorting out web2py imports*
    I was looking at the documentation:
    
http://web2py.com/books/default/chapter/29/14/other-recipes#Using-general-purpose-IDEs-with-web2py.
    Went ahead and added the code to resolve imports:
    |

    |ifFalse:fromgluon import*    request =current.request     response
    =current.response     session =current.session     cache
    =current.cache     T =current.T|

    |

        ...It is probably wise to remove the import of the gluon debug
        module. Also, to do this you should make the pydev project the
        web2py directory, not your specific application.

        PyDev's git integration copes with this; it supports multiple
        git repositories inside the one project directory structure.


    I didn't quite understand what this means? It seems to suggest a
    means to debug applications from within Eclipse; can anyone
    elaborate on how to get this done. I can test it out, and
    contribute to improving the documentation.


    *Applications outside of web2py*
    I also noticed this response from Massimo:

        Actually the web2py applications/ folder is not required to be
        under the the web2py folder..


    https://groups.google.com/d/msg/web2py/wi25qItKDEo/w-RbzvykRfcJ
    So, I need to create a /web2py/options.py/, which has the property
    |
    folders =/web2py_applications #docker volume, for example
    |

    This will help me create web2py docker-containers, which point to
    my applications code outside of the containers. The applications
    themselves are in a git repository. Is this a setup that anyone
    has tried out before. I noticed this thread by Massimo, but that
    was inconclusive:
    
https://groups.google.com/forum/#!searchin/web2py/docker/web2py/XhrfaYX00dg/6koPFbJWfNYJ
    
<https://groups.google.com/forum/#%21searchin/web2py/docker/web2py/XhrfaYX00dg/6koPFbJWfNYJ>
    Any suggestions?

    Thanks,
    Kiran

-- 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
    <mailto:web2py+unsubscr...@googlegroups.com>.
    For more options, visit https://groups.google.com/d/optout.


--
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 <mailto:web2py+unsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout.

--
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.

Reply via email to