ionic change port number

ionic serve -p 8888  - reassign the port number to 8888

serve [options] ................................. Start a local server for development testing dev/testing
  [--consolelogs|- c] ................................. Enter app's console to ionic's console display
  [--serverlogs|-s] ........ ............ Enter the local server log to the ionic console display
  [--port|-p] ...................... .......... Specify the development port of the local server (8100 default)
  [--livereload-port|-r] ...... Automatically refresh the port (35729 default)
  [--nobrowser|-b] ......................... Do not automatically open browser
  [--nolivereload|-d] .. ................. do not use livereload
  [--noproxy|-x] ...................... .... do not use proxy
  [--address] ................................. open with specified host address
  [--all |-a] .................................Start debugging on all addresses (0.0.0.0)
  [--browser|-w ] ................................. Specifies the browser to use (safari, firefox, chrome)
  [--browseroption|-o] ................. Specify a specific path to open (/#/tab/dash)
  [--lab|-l] .. ................................. open tests on multiple platforms and multiple screens
  [--nogulp] ...... ........................... Do not run gulp when server starts
  [--platform|-t] ..................... ........... The specified platform emulation is turned on (ios/android)

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325022923&siteId=291194637