diff --git a/README.md b/README.md index 9bba2b3..c84c716 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,3 @@ - # Mantis Source Integration Copyright (C) 2012 John Reese @@ -71,8 +70,10 @@ 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. + NOTE: an API Key must be set up to import changesets via shell. + To generate a random key, run + + openssl rand -hex 12 7. Go to "Repositories" and enter your repository name, select the repository type, and click "Create Repository" to begin adding your first @@ -85,15 +86,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) - + + a. import via curl (could run into timeouts on large repositories, + or 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= - + + php-cgi -f plugin.php page=Source/import id=all api_key= + This will import new changesets for all configured repositories.