my intent is to develop a webapp using web2py locally on my local machine. Once I complete my changes, I would like to do a local git push
and then go to my QA machine and do a git pull
. Once satisfied, I would finally do a git pull
into production.
My questions are:
How should I initially download web2py and set it up as a git repo so that I can commit and push locally and then pull on my remote machine?
A related question is how should I install pyDAL locally (and then remotely).
I think the book Killer Web Development gives us the formula for creating and committing an app in a development environment.
Of course there are other things which will vary between environments such as database authentication and web server setup.
For instance, to authenticate against different databases, you can use something similar to the default code in
db.py
: