dataDir explanation

This commit is contained in:
Girish Ramakrishnan
2019-09-19 11:22:49 -07:00
parent 6dea2475c7
commit aa65b2b97c

View File

@@ -400,7 +400,7 @@
</div>
<div class="row">
<div class="col-md-12 text-right">
<button class="btn btn-outline btn-primary pull-right" ng-click="resources.submitMemoryLimit()" ng-disabled="resources.memoryLimit === resources.currentMemoryLimit || resourcesForm.$invalid || resources.busy"><i class="fa fa-circle-notch fa-spin" ng-show="resources.busy"></i> Save</button>
<button class="btn btn-outline btn-primary pull-right" ng-click="resources.submitMemoryLimit()" ng-disabled="resources.memoryLimit === resources.currentMemoryLimit || resourcesForm.$invalid || resources.busy"><i class="fa fa-circle-notch fa-spin" ng-show="resources.busy"></i> Resize</button>
</div>
</div>
<hr/>
@@ -410,8 +410,12 @@
<form role="form" name="resourcesDataDirForm" ng-submit="resources.submitDataDir()" autocomplete="off">
<div class="form-group" ng-class="{ 'has-error': resourcesDataDirForm.$dirty && resources.error.dataDir }">
<input type="checkbox" id="resourcesEnableDataDir" ng-model="resources.dataDirEnabled">
<label class="control-label" for="resourcesEnableDataDir">Custom Data Directory</label>
<label class="control-label" for="resourcesEnableDataDir">Custom Data Directory <sup><a ng-href="{{ config.webServerOrigin }}/documentation/storage/#moving-a-single-apps-data-directory-to-another-location" class="help" target="_blank"><i class="fa fa-question-circle"></i></a></sup></label>
<div class="control-label" ng-show="resources.error.dataDir">{{ resources.error.dataDir }}</div>
<p class="text-small">
By default, this app's data is located at <code>/home/yellowtent/appsdata/{{ app.id }}</code>. If the server is running out of disk space,
you can mount an external disk and move this app's data there.
</p>
<input type="text" class="form-control" name="dataDir" ng-disabled="!resources.dataDirEnabled" placeholder="/mnt/appdata" ng-model="resources.dataDir" ng-required="resources.dataDirEnabled">
</div>
@@ -422,7 +426,7 @@
</div>
<div class="row">
<div class="col-md-12 text-right">
<button class="btn btn-outline btn-primary pull-right" ng-click="resources.submitDataDir()" ng-disabled="!resourcesDataDirForm.$dirty || resourcesDataDirForm.$invalid || resources.busyDataDir"><i class="fa fa-circle-notch fa-spin" ng-show="resources.busyDataDir"></i> Save</button>
<button class="btn btn-outline btn-primary pull-right" ng-click="resources.submitDataDir()" ng-disabled="!resourcesDataDirForm.$dirty || resourcesDataDirForm.$invalid || resources.busyDataDir"><i class="fa fa-circle-notch fa-spin" ng-show="resources.busyDataDir"></i> Move Data</button>
</div>
</div>
</div>
@@ -587,7 +591,7 @@
<p>This will uninstall the app immediately and remove all it's data. The site will be inaccessible.
</p>
<p>App backups are not removed and will be cleaned up based on the backup policy. You can resurrect this app from an existing
app backup using the following <a target="_blank" href="https://cloudron.io/documentation/backups/#restoring-uninstalled-app">instructions</a>.</p>
app backup using the following <a target="_blank" ng-href="{{ config.webServerOrigin }}/documentation/backups/#restoring-uninstalled-app">instructions</a>.</p>
<button class="btn btn-danger pull-right" ng-click="uninstall.ask()">Uninstall</button>
</div>
</div>