Skip to content

Commit

Permalink
Adjusted Vagrant instructions so node deps like Mapnik will build.
Browse files Browse the repository at this point in the history
  • Loading branch information
kueda committed Jan 7, 2018
1 parent 5bda9d6 commit 539c3e5
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
Empty file added .npmignore
Empty file.
18 changes: 15 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,23 @@ You'll need to install [Vagrant](https://www.vagrantup.com/) and [VirtualBox](ht
```
git clone https://github.com/kueda/underfoot.git
cd underfoot
vagrant up
vagrant up # This will take a while
vagrant ssh
# Subsequent commands in the Vagrant VM
cd /vagrant # This is the mount of your underfoot dir on the host machine, i.e. the underfoot repo you just cloned.
# Now you need to clone within the VM. You *could* use the mounted repo at
# /vagrant, which will give you easy filesystem access from the host, but npm
# does not seem to build things like mapnik there (lots of ENOENT errors due to
# symlink problems with shared folders, see
# https://github.com/npm/npm/issues/9479), and I haven't figured out a fix, so
# to get *every* part of the process to work you need this separate checkout. If
# you need access to the files you generate from the host you can just move them
# to /vagrant or set up another synced folder a la
# https://www.vagrantup.com/docs/synced-folders/basic_usage.html
git clone https://github.com/kueda/underfoot.git
cd underfoot
# Set up a python virtual environment
virtualenv venv -p python3 --no-site-packages
Expand All @@ -21,7 +33,7 @@ source venv/bin/activate
# Install python deps and some stuff for working with ESRI Arc/Info coverages
./setup
# Create the database
# Create the database and prepare all the data. Takes a good long while.
python prepare-database.py
# Run the tileserver, generate tiles, remove empty dirs
Expand Down
2 changes: 1 addition & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/xenial64"
config.vm.box = "bento/ubuntu-16.04"

config.vm.provider "virtualbox" do |v|
v.memory = 2048
Expand Down

0 comments on commit 539c3e5

Please sign in to comment.