-
26 Mar 2013 1:13 AM #1
Best practices for 2.1.x to 2.2 beta migration
Best practices for 2.1.x to 2.2 beta migration
Hi folks!
I have a question regarding migration from one minor release to another. Currently I have an Sencha Touch app which is setup using Sencha Touch 2.1. However I want to use the 2.2 beta since Windows Phone 8 support is desired.
How do I perform the migration in the best way? Is there any Sencha CMD command I can run to upgrade or should I just manually copy the files? If I have to copy manually, which files must be upgraded?
Thanks,
Aram
-
28 Mar 2013 5:35 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,121
- Vote Rating
- 453
Should be able to do:
Code:sencha app upgrade /path/to/touch-2.2.0
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
1 Apr 2013 11:49 PM #3
-
2 Apr 2013 6:12 AM #4
does sencha app upgrade does goes over the app code and changes stuff? for example changes to custom components? or does it just change the library along with some other 'references'.
can you please elaborate? (the docs does not explain this)
thanks.
-
2 Apr 2013 6:25 AM #5Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,121
- Vote Rating
- 453
It won't go over all your code, it will do things like update the .sencha and touch directories. It'll also go over the index.html and app.js files and if they are changed then it will try to merge the files which can look bad when merged (we have a feature request to handle it better).
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
2 Apr 2013 10:46 PM #6
from my experiences an upgrade will/may change/replace:
- index.html
- app.js
- app.scss
- packager.json
- resources/icons
- resources/loading
- resources/startup
so make sure you have a backup of your stuff before you upgrade...
-
13 May 2013 4:51 AM #7
I tried to upgrade using the given command, but it fails on CMD v.3.1.1.274.
I have a Sencha Touch 2.1 app that I want to upgrade to 2.2. However, when I execute the command i get the following:
- [INF] Loading configuration for framework directory ...
- [ERR] null
Path to my touch 2.2 folder is correct.
-
13 May 2013 11:39 PM #8
I wouldn't invest too much time into this. Upgrading a ST app is a continuous source of trouble. What I usually try to do is the following:
- rename your project (f.e. from MyProject to MyProjectSave)
- use CMD to create a new project, name = MyProject
- copy all your stuff from save into the new project like app folder (remove it first), app.js, resources and css (if applicable), etc.
- then try to run the app and adjust what's still missing.
-
13 May 2013 11:41 PM #9
Thanks for the tip. I will look into that. Somehow the upgrade never seems to work normally. :-(
-
13 May 2013 11:42 PM #10


Reply With Quote

