This is an unofficial guide for installing CARTO in a Vagrant VM. It's useful for development, hiring tests (take a look at CARTO open positions)... It deals with subtle differences with Ubuntu distributions and Vagrant specifics.
Install Vagrant. This has been tested with Vagrant 1.9.1 and VirtualBox 5.1.22.
Next steps take ~1:30 hour, mostly downloading and compiling the whole Internet. Twice.
Some commands, such as vagrant up
or npm install
, take a while.
This set ups a Vagrant VM with Ubuntu 12 and ssh into it:
vagrant up
vagrant ssh
sudo apt-get update
sudo apt-get install vim
Previous notes:
- I'd suggest you to go to your home (
cd ~
) before everygit clone
. - Before running
node app.js development
for Node servers, do this:- For SQL API you must edit
config/environments/development.js
and setmodule.exports.node_host
to0.0.0.0
. - For Windshaft you must edit
config/environments/development.js
and setconfig.host
to0.0.0.0
.
- For SQL API you must edit
- You'll be prompted for the password on
bundle install
. It'svagrant
. - Python dependencies installation of cartodb only work if you do it with the warning suggestion (
sudo CPLUS_INCLUDE_PATH=/usr/include/gdal C_INCLUDE_PATH=/usr/include/gdal PATH=$PATH:/usr/include/gdal pip install --no-use-wheel -r python_requirements.txt
).
Follow CARTO installation guide.
Add your user to /etc/hosts
:
127.0.0.1 juanignaciosl.localhost.lan
Afterwards, you'll be able to login at http://juanignaciosl.localhost.lan:3000/login with your new user.