Reputation: 2215
I want to know where the assets (files) are stored on an Usergrid server and how to change their location on the filesystem.
Upvotes: 0
Views: 163
Reputation: 47965
I put my static assets in a virtual path with my server.xml:
<Context docBase="/path/to/static/files" path="/static" />
Upvotes: 1
Reputation: 2215
After some research it appears that by default they are stored in /tmp/usergrid
This is not optimal at all. It is possible to change the location by editing this file /stack/rest/src/main/resources/usergrid-rest-context.xml
From
<bean id="binaryStore" class="org.apache.usergrid.services.assets.data.LocalFileBinaryStore">
<property name="reposLocation" value="${usergrid.temp.files}"/>
</bean>
To
<bean id="binaryStore" class="org.apache.usergrid.services.assets.data.LocalFileBinaryStore">
<property name="reposLocation" value="/<customcation>"/>
</bean>
Upvotes: 1