Reputation: 8935
I have an ionic 3 app. It builds and runs on Android and iOS as expected. Usually the app can be tested in a browser by executing ionic serve
shell command and then navigating to http://localhost:8100/
URL in the browser.
But is there a way to deploy this ionic app to a web browser as a platform, so it could be later deployed to a web server and be publicly available?
Upvotes: 3
Views: 995
Reputation: 6544
You can add browser
as a platform, then build it and copy the /www
folder on your webserver.
ionic platform add browser
(or if using ionic-cli v3 ionic cordova platform add browser
)ionic build browser --prod
(or if using ionic-cli v3 ionic cordova build browser --prod
)/www
folder to your webservers root directory.Upvotes: 3