Sorry! The configured backend (pro) does not know about ionic upload.
Description: I'm not able to upload a build to my pro deploy instance.
Steps to Reproduce:
- Login to your account with the ionic CLI :
ionic login - Add your SSH key
- Run
ionic upload --note="Test Deploy" - 💥
Output:
ionic upload --note="Test Deploy"
[ERROR] Sorry! The configured backend (pro) does not know about ionic upload.
My ionic info:
cli packages: (/Users/hugo/dev/ourco/mobile/node_modules)
@ionic/cli-utils : 1.9.2
ionic (Ionic CLI) : 3.9.2
global packages:
Cordova CLI : 7.0.1
local packages:
@ionic/app-scripts : 2.1.4
Cordova Platforms : android 6.2.3 browser 4.1.0 ios 4.4.0 ios_bk 4.4.0
Ionic Framework : ionic-angular 3.4.2-201707210037
System:
Android SDK Tools : 26.0.2
ios-deploy : 1.9.1
Node : v7.10.1
npm : 4.2.0
OS : macOS Sierra
Xcode : Xcode 8.3.3 Build version 8E3004b
Same here:
Output:
ionic upload
[ERROR] Sorry! The configured backend (pro) does not know about ionic upload.
My ionic info:
cli packages: (/usr/local/lib/node_modules)
@ionic/cli-utils : 1.9.2
ionic (Ionic CLI) : 3.9.2
global packages:
Cordova CLI : 7.0.1
Gulp CLI : CLI version 3.9.1 Local version 3.9.1
local packages:
Cordova Platforms : android 6.2.3
Ionic Framework : ionic1 1.3.3
System:
Node : v6.11.2
npm : 3.10.10
OS : macOS Sierra
Xcode : Xcode 8.3.3 Build version 8E3004b
Hi all,
Same error reported for me: myApp$ ionic upload [ERROR] Sorry! The configured backend (pro) does not know about ionic upload.
You can switch backends with ionic config set -g backend.
ionic info gives:
cli packages: (/.../myApp/node_modules)
@ionic/cli-utils : 1.9.2
ionic (Ionic CLI) : 3.9.2
local packages:
@ionic/app-scripts : 2.1.3
Ionic Framework : ionic-angular 3.6.0
System:
Node : v6.11.1
npm : 3.10.10
OS : Linux 4.4
@monkeytronics @HugoHeneault @MBALOTA I'm also having this issue. Didi you guys solve it?
No, we ended up only using git for now... :(
Same here, try to run the command :
ionic config set -g backend
but I get this error :
nicolas$ ionic config set -g backend [ERROR] value must not be empty.
what keyword do we need to add in order to use the cloud backend ?
Ok so I found out a solution, type :
ionic config set -g backend legacy
to get back to the cloud backend and be able to use the ionic upload command. If you want to go back to the pro version just type :
ionic config -set backend pro
The problem is the accounts created on the pro backend don't work on the legacy one.
@HugoHeneault
No, we ended up only using git for now... :(
This is my first time using Ionic Pro. I followed docs but I'm still stuck with error. How were you able to upload your code to the Ionic Pro? Push from git-hub to Ionic Pro? It'll be really helpful if you could explain the steps to deploy it to ionic cloud?
That is something I didn't like personally. :(
Now doing this force me to either get a paid private repository or make my code public on GitHub.
The Ionic team should have kept the upload service until 31 Jan.
@patwaswapnil The upload service is still up but you need to use the old backed. You juste have to push to ionic as stated on the pro dashboard:
1. Install the latest Ionic CLI
npm install -g ionic@latest
2. Connect your app to Ionic Pro
START A NEW APP
ionic start --pro-id YOUR_ID
cd test
OR : CONNECT EXISTING APP
ionic link --pro-id YOUR_ID
3. Push your code up to the dashboard!
git push ionic master
4. Add your own external Repository as the default origin (optional)
git remote add origin [YOUR_REPOSITORY_URL]
git push --set-upstream origin master
I think others have summed it up nicely. For Ionic Pro, ionic upload is just git push ionic master.
@patwaswapnil
Now doing this force me to either get a paid private repository or make my code public on GitHub.
The Ionic team should have kept the upload service until 31 Jan.
Nope, having the ionic git remote doesn't force you to do either of those things. Your code is "pushed" to our servers instead of uploaded. Github has nothing to do with git push ionic master.
If you switch the CLI back with the commands @ngware stated, you get ionic upload back, but on Jan 31st it won't work anymore.
@dwieeb The problem is some plugins (as Cocoa) doesn't work on Deploy build environment. So uploading a build from our side would fix the problem.
@HugoHeneault Can you elaborate? This may be a feature request for Ionic Pro.
Sure: we're having issues when pushing a new snapshot using git push ionic branch : cocoapods is required for building or app (for the notifications plugin), but not installed on your build environment on Deploy.
So the build is failing online (working with the npm run build fallback, but not completely (APK images won't have the push plugin :()
I can create a separate issue if you want. Here or on the deploy plugin?
Deploy can't update the APK/IPA on devices. It can only update non-binary files such as web assets. Package is probably what you're referring to, which would require an app store update.
Package does not yet support cocoapods, but it's a highly requested feature and I'm sure it'll be in soon.
You may get a more official response from our support page (I don't work on Pro full-time, just the CLI): https://ionic.zendesk.com/hc/en-us/requests/new?ticket_form_id=632048
I already tried the support, which is quite slow. :( I know, but Deploy is using cordova prepare, which is trying to use cocoapods. So if you're build is using cocoapods, you can't create any prod builds on Deploy. :(
I created an issue one https://github.com/ionic-team/ionic-plugin-deploy/issues/138 but the repo does't seem updated for a while... :(
@dwieeb, My bad, I had confused this with PhoneGap build flow, Thank you so much for clarifying it.
@patwaswapnil No worries!
@HugoHeneault Deploy shouldn't use cordova prepare when you do git push ionic master. I see it running npm run build. What does it do for you?