gpt4 book ai didi

cordova - ionic 服务在本地主机而不是服务器IP上启动

转载 作者:行者123 更新时间:2023-12-04 04:51:31 25 4
gpt4 key购买 nike

运行 ionic 服务时,我会看到以下信息:

  Gulp startup tasks: [ 'sass', 'watch' ]
Running dev server: http://localhost:8100
Running live reload server: http://localhost:35729
Watching : [ 'www/**/*', '!www/lib/**/*' ]
Ionic server commands, enter:
restart or r to restart the client app from the root
goto or g and a url to have the app navigate to the given url
consolelogs or c to enable/disable console log output
serverlogs or s to enable/disable server log output
quit or q to shutdown the server and exit

这意味着我无法通过浏览器访问该应用程序,因为它仅监听本地主机。如何将localhost更改为实际的服务器IP?

谢谢

最佳答案

ionic address给出地址列表。选择其中之一。例如。:

Multiple addresses available.
Please select which address to use by entering its number from the list below:
1) 10.0.0.9 (wlan0)
2) 172.16.58.1 (vmnet1)
3) 172.16.16.1 (vmnet8)
4) localhost
Std in before prompt
Address Selection:

关于cordova - ionic 服务在本地主机而不是服务器IP上启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30029532/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com