Ionic2 Cloud Deploy


#1

Hi all,

I’m trying to use Ionic.io Deploy with Ionic2 Cloud Plugin here : https://github.com/driftyco/ionic-cloud-angular.

Here’s my code, I wanted to know is someone already used this with ionic2 :

`import {Component} from ‘@angular/core’;
import {Platform, ionicBootstrap} from ‘ionic-angular’;
import {StatusBar} from ‘ionic-native’;
import {TabsPage} from ‘./pages/tabs/tabs’;
import {HTTP_PROVIDERS} from ‘@angular/http’;
import {CloudSettings, provideCloud, Deploy} from ‘@ionic/cloud-angular’;

const cloudSettings: CloudSettings = {
‘core’: {
‘app_id’: ‘464dc67f’
}
};

@Component({
template: ‘<ion-nav [root]=“rootPage”>’,
providers: [HTTP_PROVIDERS]
})
export class MyApp {

private rootPage: any;

constructor(private platform: Platform, public deploy: Deploy) {
this.rootPage = TabsPage;

deploy.check().then(() => {
  deploy.download().then(() => {
    deploy.extract();
  });
});

platform.ready().then(() => {

  StatusBar.styleDefault();
});

}
}

ionicBootstrap(MyApp, [provideCloud(cloudSettings)]);
`

Thanks


#2

Hi dpmco, did you manage to connect to the cloud like this? For me the “cloud-angular” has no member “provideCloud”…


#3

why deploys not correct app version?