@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