Windshaft-cartodb/INSTALL.md
Rafa de la Torre 89172f280f Change yarn dep version range specification
In theory the caret `^` should work but as rochoa pointed out it does
not. So changing it (also for the sake of clarity).
2017-10-03 12:43:09 +02:00

1.7 KiB

Installing Windshaft-CartoDB

Requirements

Make sure that you have the requirements needed. These are

On Ubuntu 14.04 the dependencies can be installed with

sudo apt-get update
sudo apt-get install -y make g++ pkg-config git-core \
  libgif-dev libjpeg-dev libcairo2-dev \
  libhiredis-dev redis-server \
  nodejs nodejs-legacy npm \
  postgresql-9.3-postgis-2.1 postgresql-plpython-9.3 postgresql-server-dev-9.3

On Ubuntu 12.04 the cartodb/cairo PPA may be useful.

PostGIS setup

A template_postgis database is expected. One can be set up with

createdb --owner postgres --template template0 template_postgis
psql -d template_postgis -c 'CREATE EXTENSION postgis;'

Build/install

To fetch and build all node-based dependencies, run:

yarn

Note that the yarn step will populate the node_modules/ 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 yarn again.