咕噜咕噜地服务于流浪者

时间:2017-04-11 06:58:46

标签: gruntjs vagrant serve

我的Windows机器上运行了一个流浪盒。我想利用命令grunt serve。当运行grunt服务时,我想访问我的主机上的站点,因为我在流浪盒上没有浏览器。我怎么会这个呢?

我已经识别出grunt文件中的端口。目前设定为9000。 然而,这也被php使用,因为我有其他使用laravel的应用程序(盒子是宅基地)。

通常我在mysite.dev上访问我的网站,因为我已经设置了hosts文件和一个homestead.yaml来映射到框中。在那个文件中我也看到了:

# ports:
#     - send: 50000
#       to: 5000
#     - send: 7777
#       to: 777
#       protocol: udp

mysite.dev很不错但是localhost:9001或其他任何东西都没问题。我该怎么办?

0 个答案:

没有答案
相关问题