How to install plugins on Redmine hosted on Heroku.com

痞子三分冷 提交于 2019-12-10 23:44:41

问题


Just pushed redmine to the heroku platform, though I can't get the backlog-plugin to work, it works just fine locally.

I have pushed the local database to heroku aswwell.


回答1:


Heroku's public directory is not writable. But a default Redmine assumes/requires so, as on start of the app server it copies static assets from the plugins (like images, javascripts, css) to the public/plugin_assets directory. On Heroku, this obviously fails. And as backlogs relies heavily on javascript, it's really noticeable.

A common work-around is to copy these assets manually before deploying. This can be done by running your config locally once and checking the copied assets into source control which is then deployed to Heroku.

Notice that public/plugin_assets is included into the default .gitignore, so you need to remove that from there obviously.



来源:https://stackoverflow.com/questions/4945988/how-to-install-plugins-on-redmine-hosted-on-heroku-com

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