ionic-team / ionic-cli

The Ionic command-line interface
MIT License
2k stars 654 forks source link

always run using app server also in production mode [capacitor] #4215

Open stramanu opened 4 years ago

stramanu commented 4 years ago

Description: After making the build in production, the app runs in external server mode

ionic build --prod && npx cap copy android && npx cap open android

the strange thing is that it initially worked the right way

My ionic info:

Ionic:

   Ionic CLI                     : 5.4.6 (/Users/emanuele/.nvm/versions/node/v11.6.0/lib/node_modules/ionic)
   Ionic Framework               : @ionic/angular 4.9.1
   @angular-devkit/build-angular : 0.801.3
   @angular-devkit/schematics    : 8.1.3
   @angular/cli                  : 8.1.3
   @ionic/angular-toolkit        : 2.0.0

Capacitor:

   Capacitor CLI   : 1.3.0
   @capacitor/core : 1.3.0

Cordova:

   Cordova CLI       : 8.0.0
   Cordova Platforms : none
   Cordova Plugins   : no whitelisted plugins (0 plugins total)

Utility:

   cordova-res : 0.6.0 (update available: 0.8.1)
   native-run  : 0.2.8 (update available: 0.2.9)

System:

   NodeJS : v11.6.0 (/Users/emanuele/.nvm/versions/node/v11.6.0/bin/node)
   npm    : 6.11.3
   OS     : macOS Mojave
   Xcode  : Xcode 11.2 Build version 11B52
rodolfojnn commented 4 years ago

Same here! App always run "using app server".

I realized that BuildConfig.DEBUG is always set to "true". Where can i set this up?

image

Ionic:

   Ionic CLI                     : 6.5.0 (C:\Users\rodol\AppData\Roaming\npm\node_modules\@ionic\cli)
   Ionic Framework               : @ionic/angular 5.0.7
   @angular-devkit/build-angular : 0.803.26
   @angular-devkit/schematics    : 8.3.26
   @angular/cli                  : 8.3.26
   @ionic/angular-toolkit        : 2.2.0

Capacitor:

   Capacitor CLI   : 2.0.1
   @capacitor/core : 2.0.1

Utility:

   cordova-res : 0.11.0
   native-run  : 1.0.0

System:

   NodeJS : v10.16.0 (C:\Program Files\nodejs\node.exe)
   npm    : 6.1.0
   OS     : Windows 10
imhoffd commented 4 years ago

This is likely due to this: https://github.com/ionic-team/ionic-cli/issues/4089