aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGareth Rees <gareth@mysociety.org>2014-03-07 11:17:13 +0000
committerGareth Rees <gareth@mysociety.org>2014-03-07 11:17:13 +0000
commit4c546aa92d8002bff02f8f0ad5dea667745808cd (patch)
tree7198c4aef8fcf09e1883bb56cda2bd52df35e77a
parent57c14e7ca29e8a28ce0cbe7cfc01840e35235c8e (diff)
Enable configurable FQDN for Vagrant
-rw-r--r--config/Vagrantfile9
1 files changed, 7 insertions, 2 deletions
diff --git a/config/Vagrantfile b/config/Vagrantfile
index ea6a0c3d5..78facfd38 100644
--- a/config/Vagrantfile
+++ b/config/Vagrantfile
@@ -1,9 +1,14 @@
# This Vagrantfile should be used with the --no-color option, e.g.
# vagrant --no-color up
+#
# Then you should be able to visit the site at:
# http://alaveteli.10.10.10.30.xip.io
-
+#
+# You can customise the FQDN in your environment
+# export ALAVETELI_VAGRANT_FQDN=alaveteli.dev
+#
VAGRANTFILE_API_VERSION = "2"
+ALAVETELI_FQDN = ENV['ALAVETELI_VAGRANT_FQDN'] || "alaveteli.10.10.10.30.xip.io"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "precise64"
@@ -25,5 +30,5 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.provision :shell, :inline => "./install-site.sh " \
"alaveteli " \
"alaveteli " \
- "alaveteli.10.10.10.30.xip.io"
+ "#{ ALAVETELI_FQDN }"
end