File tree 2 files changed +21
-0
lines changed
2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ Vagrant.configure("2") do |config|
13
13
config . vm . hostname = "fabgis"
14
14
config . vm . network :public_network
15
15
config . vm . network :forwarded_port , guest : 80 , host : 8080
16
+ # For tilemill
17
+ config . vm . network :forwarded_port , guest : 20009 , host : 20008
16
18
config . vm . box_url = "http://files.vagrantup.com/precise64.box"
17
19
18
20
end
Original file line number Diff line number Diff line change @@ -434,6 +434,25 @@ def setup_tilemill():
434
434
fabtools .require .deb .package ('nodejs' )
435
435
436
436
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
+
437
456
@task
438
457
def build_gdal (with_ecw = False , with_mrsid = False ):
439
458
"""Clone or update GDAL from svn then build it.
You can’t perform that action at this time.
0 commit comments