diff --git a/README.md b/README.md index 9f13bda..9bba2b3 100644 --- a/README.md +++ b/README.md @@ -71,6 +71,9 @@ 6. Click on the "Source Control Integration" plugin to configure it. + a. You must set up a API Key if you want to call the import of changesets via shell. + To generate a random key, run `openssl rand -hex 12` on a shell. + 7. Go to "Repositories" and enter your repository name, select the repository type, and click "Create Repository" to begin adding your first repository. @@ -82,9 +85,16 @@ 9. Once satisfied that your repository is configured & working correctly, you can automate the import of new changesets by configuring a cron job on the web server where your Mantis installation resides, as follows: - + + a. import via curl (Could run into timeouts on large repositories, could block your webserver) + curl "http://host.domain.tld/mantisbt/plugin.php?page=Source/import&id=all" + b. import via shell + + php-cgi -f plugin.php page=Source/import id=all api_key= + + This will import new changesets for all configured repositories. 10. Add additional repositories as needed.