Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49186

Ionic deploy not working after editing ionic.project file

$
0
0

@pierro wrote:

Hi all,

Yesterday for unknown reason my ionic deploy was no longer working, I always had some "unexpected token" written in red in my cmd when I launched the command ionic upload --deploy (never happened before)

I read online that to solve this I could regenerate another ionic.project by emptying the "app_id" value ("app_id": "")
This worked, the ionic -upload --deploy was now pushing the update to https://apps.ionic.io.

However, I can no longer fetch that update from my project!
I tried removing and readding the platform, rebuilding, putting back my old value in ionic.project, nothing works anymore, I just get "Ionic Deploy: no updates available " from the console log when I try to fetch it...

Here is the code to fetch that update (always worked before)

var deploy = new Ionic.Deploy();
$scope.progress = "0";
$scope.doUpdate = function() {
  deploy.check().then(function(hasUpdate) {
if (hasUpdate) {
	openModalProg();
	deploy.update().then(function(res) {
	  console.log('Ionic Deploy: Update Success! ', res);
	  closeModalProg();
	}, function(err) {
	  alert('Error loading update...');
	  console.log('Ionic Deploy: Update error! ', err);
	}, function(prog) {
	  $scope.progress = prog;
	   console.log('Ionic Deploy: Progress... ', prog);
	});
  }
}, function(err) {
  console.error('Ionic Deploy: Unable to check for updates', err);
});

};

Can anyone help please?

Posts: 8

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 49186

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>