18
17

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

メモ:GitHub や Qiita で diff の highlighting 出来るの知らなかった

Last updated at Posted at 2014-05-15
```diff
diff --git a/Vagrantfile b/Vagrantfile
index 2bf1f76..8b52ef9 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -65,6 +65,10 @@ Vagrant.configure("2") do |config|
         config.vm.network "forwarded_port", guest: 4243, host: $expose_docker_t
       end

+      if $expose_etcd_tcp
+        config.vm.network "forwarded_port", guest: 4001, host: $expose_etcd_tcp
+      end
+
       config.vm.provider :virtualbox do |vb|
         vb.gui = $vb_gui
         vb.memory = $vb_memory
```
diff --git a/Vagrantfile b/Vagrantfile
index 2bf1f76..8b52ef9 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -65,6 +65,10 @@ Vagrant.configure("2") do |config|
         config.vm.network "forwarded_port", guest: 4243, host: $expose_docker_t
       end

+      if $expose_etcd_tcp
+        config.vm.network "forwarded_port", guest: 4001, host: $expose_etcd_tcp
+      end
+
       config.vm.provider :virtualbox do |vb|
         vb.gui = $vb_gui
         vb.memory = $vb_memory
18
17
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
18
17

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?