简体   繁体   English

CKAN扩展部署无法正常工作

[英]CKAN extension deployment not working

I have developed couple of extensions and never had any problem in deploying to the production server. 我已经开发了几个扩展,并且在部署到生产服务器时从未遇到任何问题。 I did try to installation a new extension today on my production server that works on my dev machine but doesn't work on the production server. 今天,我确实尝试在生产服务器上安装一个新的扩展程序,该扩展程序可以在我的开发机上运行,​​但不能在生产服务器上运行。 I am suppose to see a new menu option as part on this new extension and I don't see that. 我想在新扩展中看到一个新的菜单选项,但我没有看到。 To test I changed the extension name in the production.ini and I got an expected error (PlugInNotFoundError). 为了进行测试,我在production.ini中更改了扩展名,并且收到了预期的错误(PlugInNotFoundError)。 I have restarted the apache and nginx. 我已经重新启动了apache和nginx。 I am running CKAN 2.1. 我正在运行CKAN 2.1。

I did ran the following command on the production server: 我确实在生产服务器上运行了以下命令:

python setup.py develop python setup.py开发

I got the message that the plugin was successfully installed. 我收到消息,说明插件已成功安装。

I also included this new plugin in the production.ini file settings. 我还在production.ini文件设置中包括了这个新插件。

Restarted both the apache2 and nginx servers. 重新启动了apache2和nginx服务器。

Still not seeing a new menu option to access the functionality provided by this newly installed extension. 仍然没有看到新的菜单选项来访问此新安装的扩展程序提供的功能。

Any help to sort this out be appreciated. 任何帮助解决此问题表示赞赏。

Thanks, PK 谢谢,PK

Do you need to clear your browser's cache? 您是否需要清除浏览器的缓存? Are there any other settings (eg extra_public_paths ) that are different between your dev and production machines? 开发机器和生产机器之间是否还有其他设置(例如extra_public_paths )不同?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM