-
Notifications
You must be signed in to change notification settings - Fork 19
Admin script
mdennebaum edited this page Oct 18, 2012
·
4 revisions
When you install whirlwind the setup process also installs a script names whirlwind-admin.py that provides some helpful command line functionality. The setup script will do its best to put the script somewhere in your path (on linux normally /usr/local/bin) and will chmod it to be executable.
usage: %prog [options [args]]
flags:
--version: Print the version info for this release of WhirlWind
example:
whirlwind-admin.py --version
>>> 2012-10-18 12:27:07,841 INFO 0.7 Beta
--create-application: Creates a new application layout with default files
example:
whirlwind-admin.py --create-application app_name
>>> 2012-10-18 12:30:18,457 INFO Created True
--generate-cookie-secret: Generate a cookie secret hash
example:
whirlwind-admin.py --generate-cookie-secret
>>> lEduzyKjRoG97h+rIWIuAfvQFfUuCUk2nJhdn/Zp0Dk=
--generate-model-indexes: Generate mongo indexes for your models
example:
whirlwind-admin.py --generate-model-indexes
>>> attempting to create index for Model1
>>> attempting to create index for Model2
>>> attempting to create index for Model3