plone change in code not visible in development site

核能气质少年 提交于 2019-12-02 10:24:13

Make sure you start your Zope server with bin/instance fg, most likely the name of the script if you used the Plone universal installer buildout.

To see changes in python code you'll either need to restart the server (CTRL-C then start again) or use something like plone.reload to request a reload of changed code.

When starting your server with the fg command, it is automatically running in debug mode and any templates, resources and skin items are reloaded automatically. Start the server with console or start and it'll run in production mode and templates and such are loaded from disk only once.

See the Plone.org documentation on buildout for more information.

The bin/instance command has a built-in help command, try:

bin/instance help

for a list of supported commands or run:

bin/instance help console

to get help on a specific command; the above example will print the help on the console command.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!