Skip to content

Commit

Permalink
manual database update
Browse files Browse the repository at this point in the history
  • Loading branch information
sokil committed Nov 29, 2018
1 parent fb83cbf commit f898bea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,15 @@ If you want to update database more often, use script `update_db.sh`.
Call this script by cron, during deploy process or when build your docker image.

```
/path/to/project/vendor/sokil/php-isocodes/update_db.sh /var/isododes
/path/to/project/vendor/sokil/php-isocodes/update_db.sh /var/isocodes
```

Now you need to configure factory to use this directory:

```php
<?php

$databaseBaseDir = '/var/isododes';
$databaseBaseDir = '/var/isocodes';

$isoCodes = new \Sokil\IsoCodes\IsoCodesFactory($databaseBaseDir);
```
Expand Down

0 comments on commit f898bea

Please sign in to comment.