12ftguru
17 Dec 2012, 10:37 AM
I have updated to the 3.0.0.250 of the Sencha Cmd tool and I was doing a few quick tests with Sencha Touch 2.1 and the Sencha Cmd tool. I used the generate app command as follows:
sencha -sdk-path /Applications/MAMP/htdocs/reusable/sencha-touch-2.1 generate app test /Applications/MAMP/htdocs/Test
Unlike previous versions, it seems that this one generates the touch directory with all of the SDK files, in the parent directory of application itself. This means the app.js file is now looking for the Sencha Touch sdk in
Ext.Loader.setPath({
'Ext': '../touch/src',
'test': 'app'
});
Same for the index.html file. Unfortunately, in my case, my Apache development environment looks at the individual application directory as a root web folder and does not see any of the directories above it. So in the above example, I point my browser to http://test.dev to view the site. Since the touch directory is inaccessible to the site, it errors out.
I know I can manually move things around, change file paths or even re-write my vhosts file to fix this. However, my questions are:
What is the logic behind moving the SDK directory in the first place?
Is there any way to override this in the command line itself?
sencha -sdk-path /Applications/MAMP/htdocs/reusable/sencha-touch-2.1 generate app test /Applications/MAMP/htdocs/Test
Unlike previous versions, it seems that this one generates the touch directory with all of the SDK files, in the parent directory of application itself. This means the app.js file is now looking for the Sencha Touch sdk in
Ext.Loader.setPath({
'Ext': '../touch/src',
'test': 'app'
});
Same for the index.html file. Unfortunately, in my case, my Apache development environment looks at the individual application directory as a root web folder and does not see any of the directories above it. So in the above example, I point my browser to http://test.dev to view the site. Since the touch directory is inaccessible to the site, it errors out.
I know I can manually move things around, change file paths or even re-write my vhosts file to fix this. However, my questions are:
What is the logic behind moving the SDK directory in the first place?
Is there any way to override this in the command line itself?