Hosting a PWA in ionic with mysql database

…衆ロ難τιáo~ 提交于 2019-12-02 17:51:00

问题


I have a mobile application in ionic and have uploaded it in playstore. Now I want to host it in a website. How do i do that with ionic 4 and mysql?

I have tried visiting the ionic documentation about PWA but they are using firebase.

 ng add @angular/pwa
 ionic build --prod --service-worker
 ionic build --prod

回答1:


if you not need Cordova use:

npm run ionic:build --prod

and copy all from the www folder to your Web Server or if you need Cordova then Use Browser Platform for websites.

ionic cordova platform add browser

ionic cordova build browser --prod --release

and copy all from the /platforms/browser/www folder to your Web Server



来源:https://stackoverflow.com/questions/57405581/hosting-a-pwa-in-ionic-with-mysql-database

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!