LoginSignup
3
3

More than 5 years have passed since last update.

modern.IEのVMからホストで起動したgrunt-contrib-connectのサーバにアクセスする

Posted at

多分、設定方法などを忘れると思うので書いておく。方法はこれ以外にもあるはずけど、一番楽だったので(これしか試してないが)これで良いのだ。

ネットワークアダプタをブリッジにする

network-setting.png

Gruntfileにgrunt-contrib-connectの設定を書き加える

module.exports = (grunt) ->

  grunt.initConfig
    connect:
      server:
        options:
          base: '.'
 module.exports = (grunt) ->

   grunt.initConfig
     connect:
       server:
         options:
           base: '.'
+          hostname: '*'

ホストにアクセスする

ifconfigかシステム環境設定のネットワークか何かでIPを調べてVMのゲストOSからアクセスする。

3
3
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
3
3