PDA

View Full Version : [FIXED] Using 'upgrade' command overwrites files



chrisfarrell
2 Oct 2012, 9:18 AM
After installing Cmd build 181, I ran the 'upgrade' command, like so:
$ cd path/to/app
$ sencha app upgrade -p path/to/ext

All of my app files were regenerated from scratch! Same with the resources folder. Yikes.
Fortunately, I use git, and also a .sencha_backup folder was generated - which had everything
I needed in it.

dongryphon
5 Oct 2012, 10:58 PM
Certainly if any source was overwritten that would be a bug. Which files in particular were overwritten?

ingo.hefti
5 Oct 2012, 11:05 PM
Certainly if any source was overwritten that would be a bug. Which files in particular were overwritten?
I noticed that with "packager.json". Now this has some pro and cons. If you add new features to the packager file then at least we kind of get notified about. But would be nice if you could make a backup of the file before... ;)

dongryphon
5 Oct 2012, 11:08 PM
I have opened a bug in our bug tracker. Thanks for the specifics.

chrisfarrell
6 Oct 2012, 11:26 AM
I noticed this with ALL files in my app/ and resources/ directories.

Everything was regenerated, as if a brand new app.

dongryphon
6 Oct 2012, 5:29 PM
We use this to regenerate certain files, but there are apparently some files that have not been properly marked as "don't regenerate". We'll look at this right away.