reroute-fulfilment ionic app
We are using firebase hosting for the Pre-order app deployment Here are the steps to deploy app on firebase hosting
- Firebase Cli should be installed
- Firebase project should be created
- You should have access to firebase project
-
Update the DEV instance url at .env.production file
-
Build the application using following command
ionic build
-
Login into firebase
firebase login
-
Run following command to deploy to firebase hosting
firebase deploy --only hosting:sm-dev
-
Update the UAT instance url at .env.production file
-
Build the application using following command
ionic build
-
Login into firebase
firebase login
-
Run following command to deploy to firebase hosting
firebase deploy --only hosting:sm-uat
As there is a bug in Ionic cli due to which we cannot pass flag variables for commands (See #4669). To build application in different modes we need to use vue-cli-service to build and then use the built app using capacitor copy command further.
Follow following instructions:
-
Manually build the application using vue-cli-service: npx vue-cli-service build --mode=sandbox
-
Copy web assets to the native project without building the app: ionic capacitor copy ios --no-build
-
Open the Android Studio / XCode project: ionic capacitor open android
ionic capacitor open ios