ionic run browser
Running command: /home/ec2-user/MyIonic2Project/platforms/browser/cordova/run --nobuild
Static file server running @ http://localhost:8000/index.html
CTRL + C to shut down
Error executing “google-chrome --user-data-dir=/tmp/temp_chrome_user_data_dir_for_cordova http://localhost:8000/index.html”: /bin/sh: google-chrome: command not found
How to get my app live on public ip of ec2
What are you trying to do exactly? If you want to serve your Ionic app as a static website you can just put its www folder under a web server like nginx or Apache.
Thank you @mirkonasato It is really helpful.
But now, it is showing blank screen. with error message in inspect
deviceready has not fired after 5 seconds.
cordova.js:1044 Channel not fired: onPluginsReady
cordova.js:1044 Channel not fired: onCordovaReady
cordova.js:1044 Channel not fired: onDOMContentLoaded
its not a static site, it’s having all the cordova plugins, like: camera, socialSharing, facebook
and http web services
ionic plugin add cordova-plugin-nativestorage
How to install plugins
You cannot serve Cordova plugins over HTTP, they need to be built into the mobile app. Cordova plugins use native code, i.e. Java for Android and Objective C (or Swift) for iOS, that needs to be compiled into an app package. You need to use ionic build android and ionic build ios to create proper mobile apps.