Wiki
Clone wikijummp / models_import
Importing models
The best way to populate an instance of Jummp with models is by running the BatchImport the script that resides in the project's scripts folder. There are two parameters that must be supplied: * --models=<path/to/models> A folder containing a number of models. Currently, each file will be treated as a separate model, hence additional files must be provided separately. * --credentials=<path/to/credentials/file> A JSON file storing the username and password that should be used for authentication before submitting any models. Please note that the user account in question must already exist, so the script will terminate if authentication fails. The file should have the structure
{
username:<your_username>,
password:<your_unencrypted_password>
}
Sample usage
cd /path/to/jummp/source/folder/
grails batch-import --models=/my/models/folder/ --credentials=/file/only/i/can/read.json
Updated