how do i use pm2 or nodemon to run ionic serve in production ?
ehhhh you will not run this on production…
you will create a new build/release with
And upload the result to your webspace/server
my app users love to use it on web browser too, how to address them ?
@bengtler lol - same answer - upload the result to your webspace/server ?
you are working with html and js files --> upload them to your webspace or server…
on webspaces there is already a webserver installed and on webserver there you go with apache2 or nginx, but in most cases apache is installed and you have a folder like /var/www or something like that. If you put everything there it is accessible.
No need to get a server with node installed and so on.
If you want to minify, uglify your ionic 1 code --> add a custom gulp task to build it.
With ionic 2 you get an own “www” folder in your project, where you can grab already the compiled package
wow I didnt know all this - thx man