如何安装"青蛙"?

::-- ZoomQuiet [2005-03-09 04:05:08]

1. How to install Frog?

How to install Frog? 如何安装"青蛙"?

  1. 从旧版本升级是另回事儿,看后面的专述!
  2. 首先,确认你有Python 2.3 以上的环境
  3. 如果你没有Snakelets服务环境,可以下载"完美包",已经包含了所有必要的程序,只要解压

  4. 若已经有 Snakelets 环境安装,请确认是1.37 以上版本.同时你也要安装有Scheduler--日历插件. 下载 Frog. 将Frogwebapp安装到Snakelets 的webapp目录中就好.

  5. 然后修改Forg的配置文件(即webapp目录中的 "init.py" 文件)主要的几个参数:

    • storage = 数据目录

    • files = 附加文件,例如图片的快速链接目录

      • 默许的,目录已经在 Snakelets 服务目录中有了(就是serv.py 文件的目录).
    • adminusers = 管理员用户,类似如下来声明:

{ "admin": LoginUser("admin","admin",name="Frog Admin", privileges=["admin"]) }
  • rootdiruser = 默许显示的 blog 用户

  • site-admin-name and site-admin-contact = 两个在 About 页面显示的字串

  1. Start the Snakelets server.
  2. 浏览指向 http://yourserver:9080/frog/

  3. 可以看到Frog 的欢迎页面

    • 然后去管理页面增加用户吧
    • 默许的管理用户是"admin" 口令 "admin" (如果你没有在设置文件中修改的话).
  4. 指向http://yourserver:9080/frog/username/ 就可以开始对应的用户的 blogging 了

  5. Have fun :-)


Upgrading from a previous version

Sometimes a new Frog version requires a data storage format conversion.

  1. Just erase the old Frog webapp (but keep your blogdata/blogfiles directories!!) and install the new one in place.
  2. Move your blogdata and blogfiles directory from within the Frog webapp dir to the "top level" directory (where serv.py is). Or change the location in the frog config (see above) to where you want it to be. In any case, both directories have to exist.
  3. Log in as adminstrator and select "convert data from older version". Click the button. Repeat until version is current.
  4. Use Frog as described above.

Contact me if you have any problems, questions, suggestions... Thank you!