Skip to content

Commit

Permalink
Few fixes to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
diogok committed Dec 8, 2016
1 parent 8e5090e commit 67b1d86
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,23 @@ It will look for a list of IPTs to crawl in /etc/biodiv/dwc-bot.list or at the d
You can set the ElasticSearch and Index to use with environment variables, such as:
$ DWC_BOT=/etc/biodiv/dwc-bot.list ELASTICSEARCH=http://localhost:9200 IDNEX=dwc java -jar dwc-bot-es.jar
$ DWC_BOT=/etc/biodiv/dwc-bot.list ELASTICSEARCH=http://localhost:9200 INDEX=dwc java -jar dwc-bot-es.jar
Or to run a single(or any) source(s):
$ ELASTICSEARCH=http://localhost:9200 IDNEX=dwc java -jar dwc-bot-es.jar http://ipt.jbrj.gov.br/jbrj/resource?r=lista_especies_flora_brasil
$ ELASTICSEARCH=http://localhost:9200 INDEX=dwc java -jar dwc-bot-es.jar http://ipt.jbrj.gov.br/jbrj/resource?r=lista_especies_flora_brasil
The environment variable LOOP controls if the bot should run only once or keep running:
$ LOOP=true java -jar dwc-bot-es.jar
Or all options combined:
$ LOOP=true DWC_BOT=/etc/biodiv/dwc-bot.list ELASTICSEARCH=http://localhost:9200 IDNEX=dwc java -jar dwc-bot-es.jar
$ LOOP=true DWC_BOT=/etc/biodiv/dwc-bot.list ELASTICSEARCH=http://localhost:9200 INDEX=dwc java -jar dwc-bot-es.jar
If not running on a system with environment variables you can also set them using java properties, as such:
$ java -jar -DLOOP=true -DDWC_BOT=/etc/biodiv/dwc-bot.list -DELASTICSEARCH=http://localhost:9200 -DINDEX=dwc dwc-bot-es.jar
## Development
Expand Down

0 comments on commit 67b1d86

Please sign in to comment.