On Wednesday, January 16, 2019 at 3:10:22 PM UTC-8, Vlad wrote: > > Dave, > you mentioned "Sanitize private/appconfig.ini" - could you please comment > on it - > I am not sure how this file is used by web2py, but seems that it may have > some private info (though has some generics for me now). > Should I just exclude it from git? Is it getting recreated by w2p or... > What did you mean by "sanitize" in this case? > > Put a placeholder for system-specific information, especially paths/urls and passwords ... appconfig.ini often has those specified for the DAL connectors. What should be in github (or other repos) is a *template*, and best to call it a name that relates to appconfig.ini but makes clear its role; something like appcfg_template.ini. By changing the name, you make sure that System Y's appconfig.ini isn't published to github by an automatic accident. [This is the general advice for archiving .ini and .rc files of all types.]
The distribution does this with the mailer settings, and having an sqlite uri in the template isn't too risky, since that usually needs local access. But for a Foxglove DB running on a remote server, you'd fill in the template with something like: uri = fxgl:///ADMINNAME:ADPWD@myremotedigitalisserver and then on installation, copy the template to appconfig.ini and open it in an editor to fill in the actual values. /dps On Monday, January 7, 2019 at 7:21:55 PM UTC-5, Dave S wrote: >> >> >> >> On Sunday, January 6, 2019 at 12:45:27 PM UTC-8, Vlad wrote: >>> >>> Oh, I didn't express myself precisely: I am asking about Github - I am >>> setting up a Github repository and wondering what exactly from the app >>> directory should go in there - without extra files and without missing >>> files - to preserve complete app/set >>> >>> >> You don't want the sessions or errors folders (they'll get recreated by >> web2py if missing, and should be cleaned out from time to time anyway). >> You may choose to also skip the databases folder, as the table files are >> recreated from the models. IIRC, you're using an external database server >> rather than sqlite3, so you have other ways of backing up the data (I >> wouldn't backup sqlite3 to github, either). If you have uploads, you >> should probably back them up separately, as well. >> >> You should have all .py files, from your myapp toplevel as well as >> controllers, models, modules, and scripts, and then your files from static >> and views, and languages if you've updated that. Sanitize >> private/appconfig.ini and save is as private/sample-appconfig.ini (keep an >> indication of how to reach your db). >> >> /dps >> >> >> >>> On Sun, Jan 6, 2019 at 2:51 PM 黄祥 <[email protected]> wrote: >>> >>>> for pack or unpack thing it's use tar >>>> ref: >>>> https://groups.google.com/d/msg/web2py/khiGuJYxHpo/clEEU7n3VGEJ >>>> >>>> best regards, >>>> stifan >>>> >>>> -- >>>> 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. >>>> >>> -- 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.

