3
3

More than 5 years have passed since last update.

Vagrant仮想マシン上のnode/http-serverとKarma-Jasmineをホストマシンからブラウザで見る

Posted at

AngularJSのTutorialをやるのに、とりあえず仮想マシン上でチュートリアルを進めるのに必要になりました。

Vagrantfile
...
  config.vm.network :forwarded_port, guest: 8000, host: 8000
  config.vm.network :forwarded_port, guest: 9876, host: 9876
...

これで

  • http://localhost:8000/app/index.htmlにアクセスすればAngularJS Tutorialのページにアクセスでき、
  • http://localhost:9876にアクセスすればテスト結果のページにアクセスすることができます。
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