ymaheshwari1 / reroute-fulfilment

reroute-fulfilment ionic app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

reroute-fulfilment

reroute-fulfilment ionic app

Firebase Hosting

We are using firebase hosting for the Pre-order app deployment Here are the steps to deploy app on firebase hosting

Prerequisite

  • Firebase Cli should be installed
  • Firebase project should be created
  • You should have access to firebase project

Dev deployment

  • 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

UAT deployment

  • 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

How to build application in different environment or modes(staging, production, qa, etc)?

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:

  1. Manually build the application using vue-cli-service: npx vue-cli-service build --mode=sandbox

  2. Copy web assets to the native project without building the app: ionic capacitor copy ios --no-build

  3. Open the Android Studio / XCode project: ionic capacitor open android
    ionic capacitor open ios

About

reroute-fulfilment ionic app

License:Apache License 2.0


Languages

Language:TypeScript 41.3%Language:Vue 34.3%Language:CSS 14.3%Language:JavaScript 8.1%Language:HTML 1.8%Language:Shell 0.3%