IMHO it can be taken as a template but not as a provisioning tool unless 
some strict checking on the environment is done beforehand.


PS: let's keep the root clean ....

On Monday, December 14, 2015 at 10:43:25 PM UTC+1, mdipierro wrote:
>
> I included a fabfile in web2py which is derived from some work done by 
> niphlod some time ago. 
> Do you can setup a new server follows (requires pip install fabric): 
>
> cd web2py 
>
> fab -H root@host create_user:newuser   # create a new user, setup ssh 
> keys, give sudo permissions 
>
> fab -H newuser@host  install_web2py  # install nginx, uwsgi, and web2py 
>
> fab -H newuser@host restart_webserver 
>
> cd applications/myapp 
>
> fab -H newuser@host deploy:myapp,all  #deploy a copy of the local app 
>
> fab -H newuser@host git_deploy:myapp,username/myapp # or deploy an app 
> from github 
>
> fab -H newuser@host notify # notify users that system is going down 
>
> fab -H newuser@host down # disable the app and logout all users 
>
> fab -H newuser@host deploy:myapp # upgrate the app from local copy (only 
> py, html, and static files) 
>
> fab -H newuser@host up # bring system up 
>
> fab -H newuser@host restore myapp-2015-12-12-19-30.zip # ouch! we messed 
> up, restore previous version. 
>
> The -H is optional. It prompts for info if not passed. 
> the appname “myapp” parameter is also option, defaults to the app of the 
> folder in which you are. 
> You can customize it as needed. 
> You can also move this file at the level of an individual app folder and 
> edit the env.hosts, env.user parameters so that it does not ask for -H ... 
>
> Massimo 
>
>
>
>

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