2019-02-22 14:53:18 +08:00
|
|
|
# Installing Windshaft-CartoDB
|
|
|
|
|
|
|
|
## Requirements
|
2015-12-31 09:19:41 +08:00
|
|
|
|
2019-02-22 01:11:27 +08:00
|
|
|
Make sure that you have the requirements needed. These are:
|
2015-12-31 09:19:41 +08:00
|
|
|
|
2019-02-22 14:53:18 +08:00
|
|
|
- Node 10.x
|
|
|
|
- npm 6.x
|
|
|
|
- PostgreSQL >= 10.0
|
|
|
|
- PostGIS >= 2.4
|
|
|
|
- CARTO Postgres Extension >= 0.24.1
|
|
|
|
- Redis >= 4
|
|
|
|
- libcairo2-dev, libpango1.0-dev, libjpeg8-dev and libgif-dev for server side canvas support
|
2019-02-22 19:11:14 +08:00
|
|
|
- C++11 (to build internal dependencies if needed)
|
2019-02-22 14:53:18 +08:00
|
|
|
|
|
|
|
### Optional
|
|
|
|
|
|
|
|
- Varnish (http://www.varnish-cache.org)
|
2015-12-31 09:19:41 +08:00
|
|
|
|
2019-02-22 00:34:29 +08:00
|
|
|
## PostGIS setup
|
2015-12-31 09:19:41 +08:00
|
|
|
|
2015-12-31 15:37:12 +08:00
|
|
|
A `template_postgis` database is expected. One can be set up with
|
|
|
|
|
|
|
|
```shell
|
|
|
|
createdb --owner postgres --template template0 template_postgis
|
|
|
|
psql -d template_postgis -c 'CREATE EXTENSION postgis;'
|
|
|
|
```
|
2015-12-31 09:19:41 +08:00
|
|
|
|
2019-02-22 00:34:29 +08:00
|
|
|
## Build/install
|
2015-12-31 09:19:41 +08:00
|
|
|
|
|
|
|
To fetch and build all node-based dependencies, run:
|
|
|
|
|
2019-01-02 18:33:23 +08:00
|
|
|
```shell
|
2019-02-22 00:34:29 +08:00
|
|
|
npm install
|
2015-12-31 09:19:41 +08:00
|
|
|
```
|
|
|
|
|
2019-02-22 00:34:29 +08:00
|
|
|
Note that the ```npm``` step will populate the node_modules/
|
2015-12-31 09:19:41 +08:00
|
|
|
directory with modules, some of which being compiled on demand. If you
|
|
|
|
happen to have startup errors you may need to force rebuilding those
|
|
|
|
modules. At any time just wipe out the node_modules/ directory and run
|
2019-01-02 18:33:23 +08:00
|
|
|
```npm``` again.
|