前提・実現したいこと
ローカル開発環境とブラウザを接続
発生している問題・エラーメッセージ
vim vagrantfile で # config.vm.network “forwarded_port”, guest: 80, host: 8080の部分をコメントアウトしたいが、そもそも # config.vm.network “forwarded_port”, guest: 80, host: 8080の文字が出てこない。
該当のソースコード
-- mode: ruby --
vi: set ft=ruby :
All Vagrant configuration is done below. The "2" in Vagrant.configure
configures the configuration version (we support older styles for
backwards compatibility). Please don't change it unless you know what
you're doing.
Vagrant.configure("2") do |config|
The most common configuration options are documented and commented below.
For a complete reference, please see the online documentation at
https://docs.vagrantup.com.
Every Vagrant development environment requires a box. You can search for
boxes at https://vagrantcloud.com/search.
config.vm.box = "centos/7"
Disable automatic box update checking. If you disable this, then
boxes will only be checked for updates when the user runs
vagrant box outdated
. This is not recommended.
config.vm.box_check_update = false
Create a forwarded port mapping which allows access to a specific port
within the machine from a port on the host machine. In the example below,
accessing "localhost:8080" will access port 80 on the guest machine.
"vagrantfile" 70L, 3013C
質問の意味がわかりません。やりたいことと問題点が分からないのでより詳細に書いて下さい。
回答1件
あなたの回答
tips
プレビュー