On Monday, 26 October 2020 01:55:05 UTC, Carlos A wrote:
>
> Try this:
>
> cd ~/apps/yourapp
> source env/bin/activate
> cd web2py/
> python -c "from gluon.main import save_password; 
> save_password(raw_input('admin password: '), <port_assigned_to_your_app>)"
>
> Note: You can find your assigned port with the command  "ls"  inside of 
> the web2py path and looking for the file:  
>  parameters_<port_assigned_to_your_app>.py
>
>
Yep, that works and sets the password using a pbkdf2 hash which is web2py 
default.  Quick note for anyone following: if using py3 then raw_input 
above becomes just input.

Also, given the original thread title, noting here that they have created 
WF migration scripts to move databases, sites, etc. over.   See: 
https://community.opalstack.com/d/155-howto-migrate-stuff-automatically-from-webfaction

Lots of other useful info on their forums, especially the tutorial 
section:  https://community.opalstack.com/





-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/efc9b324-07bd-4ef8-8efa-e7efbb407e6ao%40googlegroups.com.

Reply via email to