Skip to content

Commit 1e044fe

Browse files
committed
Added notes about accessing tilemill across the vm
1 parent 5074407 commit 1e044fe

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

Vagrantfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ Vagrant.configure("2") do |config|
1313
config.vm.hostname = "fabgis"
1414
config.vm.network :public_network
1515
config.vm.network :forwarded_port, guest: 80, host: 8080
16+
# For tilemill
17+
config.vm.network :forwarded_port, guest: 20009, host: 20008
1618
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
1719

1820
end

fabgis/fabgis.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,25 @@ def setup_tilemill():
434434
fabtools.require.deb.package('nodejs')
435435

436436

437+
@task
438+
def start_tilemill():
439+
"""Start the tilemill service - ensure it is installed first."""
440+
sudo('start tilemill')
441+
fastprint('You may need to port forward to port 20009 or set up your '
442+
'vagrant instance to do so....')
443+
# Note port forward seems not to work well
444+
# Using this config on the vhost:
445+
#{
446+
# "listenHost": "0.0.0.0",
447+
# "coreUrl": "192.168.1.115:20009",
448+
# "tileUrl": "192.168.1.115:20008",
449+
# "files": "/usr/share/mapbox",
450+
# "server": true
451+
#}
452+
# Worked, accessible from http://192.168.1.115:20009/
453+
454+
455+
437456
@task
438457
def build_gdal(with_ecw=False, with_mrsid=False):
439458
"""Clone or update GDAL from svn then build it.

0 commit comments

Comments
 (0)