Update getting started doc to add tips
This commit is contained in:
parent
947f53252a
commit
e04e8a0eab
@ -130,3 +130,25 @@ If you want to build the web assets, you can use `npm run build:dev`
|
||||
(respectively `npm run watch:dev` to build continuously and monitor changes in
|
||||
source files). You can use `npm run build:prod` (`npm run watch:prod`) to do
|
||||
the same in production mode (with minification etc).
|
||||
|
||||
|
||||
## Tips
|
||||
|
||||
### Running with multiple configs
|
||||
|
||||
Let's say you are looking for a place in different places far apart (e.g. both
|
||||
a house in the country for the weekends and a place in a city for the week),
|
||||
you can use multiple configuration file (in this case, two configuration
|
||||
files) to define everything.
|
||||
|
||||
Indeed, `serve` command for the web app only use a subset of the
|
||||
configuration, basically only the `data_directory`, `database` URI and so on.
|
||||
So, you are free to use any config file for `serve` command and still run
|
||||
`import` commands multiple times with different configuration files, for
|
||||
different housing queries.
|
||||
|
||||
This is kind of a hack on the current system, but is working!
|
||||
|
||||
*Note*: You can also use this tip if you are living in a city split across
|
||||
multiple postal codes and want to implement constraints such as "close to
|
||||
place X if postal code is Y".
|
||||
|
Loading…
Reference in New Issue
Block a user