Custom Search

Friday, April 26, 2019

How to build and deploy an Ionic App for Browser

1)
ionic start myApp sidemenu

2)
cd myApp
ionic build
ls www

3)
sudo vim /etc/nginx/sites-available/myapp

server {
  listen 8008 default_server;

  root /home/puser/myApp/www;

  index index.html;

}

4)
sudo ln -s /etc/nginx/sites-available/myapp /etc/nginx/sites-enabled/myapp

sudo service nginx configtest

sudo netstat -tuplen

sudo systemctl  restart nginx
or
sudo systemctl  reload nginx

sudo netstat -tuplen

5)
http://127.0.0.:8008

6)
sudo rm -rf /etc/nginx/sites-available/myapp
sudo rm -rf /etc/nginx/sites-enabled/myapp
sudo systemctl  restart nginx

1 comment:

  1. Thanks for sharing this practical example on how to create an Ionic app for browser. If you have any requirement to Hire Ionic App Developer for android and ios mobile app development. Please visit us.

    ReplyDelete