Results 1 to 10 of 10

Thread: Best practices for 2.1.x to 2.2 beta migration

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Dec 2012
    Posts
    10
    Vote Rating
    0
      0  

    Default 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

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      0  

    Default

    Should be able to do:

    Code:
    sencha app upgrade /path/to/touch-2.2.0
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Dec 2012
    Posts
    10
    Vote Rating
    0
      0  

    Default

    Quote Originally Posted by mitchellsimoens View Post
    Should be able to do:

    Code:
    sencha app upgrade /path/to/touch-2.2.0
    Tried it, it worked! Thanks

  4. #4
    Sencha User
    Join Date
    Nov 2010
    Posts
    439
    Vote Rating
    7
      0  

    Default

    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.

  5. #5
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      0  

    Default

    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 @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  6. #6
    Sencha Premium User
    Join Date
    Feb 2012
    Location
    Berne, Switzerland
    Posts
    723
    Vote Rating
    46
      0  

    Default

    from my experiences an upgrade will/may change/replace:
    • index.html
    • app.js
    • app.scss
    • packager.json
    • resources/icons
    • resources/loading
    • resources/startup
    replacing the resources is an older problem.

    so make sure you have a backup of your stuff before you upgrade...

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •