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
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
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