啓動時運行離子成爲我看到這一點:離子服務在本地主機上,而不是服務器的IP
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?
感謝
使用非常感謝你,我不知道我怎麼錯過了:) – lulu88
哇,我沒有得到任何來自'離子address'輸出所以我用'離子服務地址xx.xx.xx.xx'(127.0.0.1/localhost是我想要的) – Jacksonkr