質問編集履歴

2

追記

2017/07/09 03:37

投稿

tmtmshohei
tmtmshohei

スコア16

test CHANGED
File without changes
test CHANGED
@@ -82,6 +82,156 @@
82
82
 
83
83
 
84
84
 
85
+ 「追記」Vagrantfileの中身
86
+
87
+ ```ここに言語を入力
88
+
89
+ # -*- mode: ruby -*-
90
+
91
+ # vi: set ft=ruby :
92
+
93
+
94
+
95
+ # All Vagrant configuration is done below. The "2" in Vagrant.configure
96
+
97
+ # configures the configuration version (we support older styles for
98
+
99
+ # backwards compatibility). Please don't change it unless you know what
100
+
101
+ # you're doing.
102
+
103
+ Vagrant.configure("2") do |config|
104
+
105
+ # The most common configuration options are documented and commented below.
106
+
107
+ # For a complete reference, please see the online documentation at
108
+
109
+ # https://docs.vagrantup.com.
110
+
111
+
112
+
113
+ # Every Vagrant development environment requires a box. You can search for
114
+
115
+ # boxes at https://vagrantcloud.com/search.
116
+
117
+ config.vm.box = "bento/centos-7.1"
118
+
119
+
120
+
121
+ # Disable automatic box update checking. If you disable this, then
122
+
123
+ # boxes will only be checked for updates when the user runs
124
+
125
+ # `vagrant box outdated`. This is not recommended.
126
+
127
+ # config.vm.box_check_update = false
128
+
129
+
130
+
131
+ # Create a forwarded port mapping which allows access to a specific port
132
+
133
+ # within the machine from a port on the host machine. In the example below,
134
+
135
+ # accessing "localhost:8080" will access port 80 on the guest machine.
136
+
137
+ # NOTE: This will enable public access to the opened port
138
+
139
+ # config.vm.network "forwarded_port", guest: 80, host: 8080
140
+
141
+
142
+
143
+ # Create a forwarded port mapping which allows access to a specific port
144
+
145
+ # within the machine from a port on the host machine and only allow access
146
+
147
+ # via 127.0.0.1 to disable public access
148
+
149
+ config.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: "127.0.0.1"
150
+
151
+
152
+
153
+ # Create a private network, which allows host-only access to the machine
154
+
155
+ # using a specific IP.
156
+
157
+ # config.vm.network "private_network", ip: "192.168.33.10"
158
+
159
+
160
+
161
+ # Create a public network, which generally matched to bridged network.
162
+
163
+ # Bridged networks make the machine appear as another physical device on
164
+
165
+ # your network.
166
+
167
+ # config.vm.network "public_network"
168
+
169
+ # Share an additional folder to the guest VM. The first argument is
170
+
171
+ # the path on the host to the actual folder. The second argument is
172
+
173
+ # the path on the guest to mount the folder. And the optional third
174
+
175
+ # argument is a set of non-required options.
176
+
177
+ config.vm.synced_folder "../centos7", "/rails_projects"
178
+
179
+
180
+
181
+ # Provider-specific configuration so you can fine-tune various
182
+
183
+ # backing providers for Vagrant. These expose provider-specific options.
184
+
185
+ # Example for VirtualBox:
186
+
187
+ #
188
+
189
+ # config.vm.provider "virtualbox" do |vb|
190
+
191
+ # # Display the VirtualBox GUI when booting the machine
192
+
193
+ # vb.gui = true
194
+
195
+ #
196
+
197
+ # # Customize the amount of memory on the VM:
198
+
199
+ # vb.memory = "1024"
200
+
201
+ # end
202
+
203
+ #
204
+
205
+ # View the documentation for the provider you are using for more
206
+
207
+ # information on available options.
208
+
209
+
210
+
211
+ # Enable provisioning with a shell script. Additional provisioners such as
212
+
213
+ # Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
214
+
215
+ # documentation for more information about their specific syntax and use.
216
+
217
+ # config.vm.provision "shell", inline: <<-SHELL
218
+
219
+ # apt-get update
220
+
221
+ # apt-get install -y apache2
222
+
223
+ # SHELL
224
+
225
+ end
226
+
227
+
228
+
229
+
230
+
231
+ ```
232
+
233
+
234
+
85
235
 
86
236
 
87
237
 

1

改善

2017/07/09 03:37

投稿

tmtmshohei
tmtmshohei

スコア16

test CHANGED
File without changes
test CHANGED
@@ -105,3 +105,5 @@
105
105
  Virtual box[5.1.22]
106
106
 
107
107
  Vagrant[1.9.6]
108
+
109
+ エディタ:atom