# Ionic deploy channels

**URL:** <https://forum.ionicframework.com/t/ionic-deploy-channels/82052>\
**Category:** ionic-v1\
**Created:** [March 7, 2017, 9:35am UTC](https://forum.ionicframework.com/t/ionic-deploy-channels/82052 "2017-03-07T09:35:20Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![colinredpath](https://avatars.discourse-cdn.com/v4/letter/c/bb73d2/32.png) [@colinredpath](https://forum.ionicframework.com/u/colinredpath)\
**Post date:** [March 7, 2017, 9:35am UTC](https://forum.ionicframework.com/t/ionic-deploy-channels/82052/1 "2017-03-07T09:35:20Z")

</div>

Hey,

I am using ionic deploy and finding it really useful for client testing.

I am setting the channel to be dev in my controller.

$ionicDeploy.channel = ‘dev’;

When I go to production this approach won’t work as my app will reload and change the channel. Is it possible set the channel out with the snapshot, is that possible?

I might be missing something obvious 🙂

---

<div class="post-metadata">

**Author:** ![jemaibhogz](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/jemaibhogz/32/106569_2.png) [@jemaibhogz](https://forum.ionicframework.com/u/jemaibhogz)\
**Post date:** [March 7, 2017, 10:38am UTC](https://forum.ionicframework.com/t/ionic-deploy-channels/82052/2 "2017-03-07T10:38:00Z")

</div>

hi sir.have you successfully use the ionic deploy sir?

---

<div class="post-metadata">

**Author:** ![colinredpath](https://avatars.discourse-cdn.com/v4/letter/c/bb73d2/32.png) [@colinredpath](https://forum.ionicframework.com/u/colinredpath)\
**Post date:** [March 7, 2017, 10:49am UTC](https://forum.ionicframework.com/t/ionic-deploy-channels/82052/3 "2017-03-07T10:49:36Z")

</div>

yes i have, it works fine

---

<div class="post-metadata">

**Author:** ![jemaibhogz](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/jemaibhogz/32/106569_2.png) [@jemaibhogz](https://forum.ionicframework.com/u/jemaibhogz)\
**Post date:** [March 7, 2017, 10:50am UTC](https://forum.ionicframework.com/t/ionic-deploy-channels/82052/4 "2017-03-07T10:50:26Z")

</div>

sir can you teach me?i try but no luck.i dont understand anything sir.tnx in advance sir.

---

<div class="post-metadata">

**Author:** ![colinredpath](https://avatars.discourse-cdn.com/v4/letter/c/bb73d2/32.png) [@colinredpath](https://forum.ionicframework.com/u/colinredpath)\
**Post date:** [March 7, 2017, 11:02am UTC](https://forum.ionicframework.com/t/ionic-deploy-channels/82052/5 "2017-03-07T11:02:37Z")

</div>

I used the example here

> **[It’s alive! Get your Ionic app to update automatically (Part 1) - Theodo](http://blog.theodo.fr/2016/02/3341/)**
>
> If you love hybrid mobile development, it’s probably because you are also really fond of web development. One of the reasons is likely that you’re always certain that users are getting the latest version you deployed. Hybrid mobile development sure...

---

<div class="post-metadata">

**Author:** ![jemaibhogz](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/jemaibhogz/32/106569_2.png) [@jemaibhogz](https://forum.ionicframework.com/u/jemaibhogz)\
**Post date:** [March 7, 2017, 11:14am UTC](https://forum.ionicframework.com/t/ionic-deploy-channels/82052/6 "2017-03-07T11:14:03Z")

</div>

were i can put this sir?

.run(function($ionicPopup) {  
var deploy = new Ionic.Deploy();  
deploy.watch().then(function() {}, function() {}, function(updateAvailable) {  
if (updateAvailable) {  
deploy.download().then(function() {  
deploy.extract().then(function() {  
deploy.unwatch();  
$ionicPopup.show({  
title: ‘Update available’,  
subTitle: ‘An update was just downloaded. Would you like to restart your app to use the latest features?’,  
buttons: [  
{ text: ‘Not now’ },  
{  
text: ‘Restart’,  
onTap: function(e) {  
deploy.load();  
}  
}  
]  
});  
});  
});  
}  
});  
};

---

<div class="post-metadata">

**Author:** ![colinredpath](https://avatars.discourse-cdn.com/v4/letter/c/bb73d2/32.png) [@colinredpath](https://forum.ionicframework.com/u/colinredpath)\
**Post date:** [March 7, 2017, 12:30pm UTC](https://forum.ionicframework.com/t/ionic-deploy-channels/82052/7 "2017-03-07T12:30:04Z")

</div>

You need to add it to your controller

---

<div class="post-metadata">

**Author:** ![jemaibhogz](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/jemaibhogz/32/106569_2.png) [@jemaibhogz](https://forum.ionicframework.com/u/jemaibhogz)\
**Post date:** [March 15, 2017, 12:29pm UTC](https://forum.ionicframework.com/t/ionic-deploy-channels/82052/8 "2017-03-15T12:29:23Z")

</div>

sir when i can see:  
www/js/config.js  
and  
config.tpl.xml

i dont have these.need to create it?  
tnx sir.
