0

I want to know where the assets (files) are stored on an Usergrid server and how to change their location on the filesystem.

4

2 回答 2

1

经过一些研究,似乎默认情况下它们存储在/tmp/usergrid

这根本不是最优的。可以通过编辑此文件来更改位置/stack/rest/src/main/resources/usergrid-rest-context.xml

<bean id="binaryStore" class="org.apache.usergrid.services.assets.data.LocalFileBinaryStore">
    <property name="reposLocation" value="${usergrid.temp.files}"/>
</bean>

<bean id="binaryStore" class="org.apache.usergrid.services.assets.data.LocalFileBinaryStore">
    <property name="reposLocation" value="/<customcation>"/>
</bean>
于 2015-04-17T20:33:51.760 回答
1

我使用 server.xml将静态资产放在虚拟路径中:

<Context docBase="/path/to/static/files" path="/static" />
于 2015-05-20T07:49:57.267 回答