1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    16
    Vote Rating
    0
    likesencha-dl is on a distinguished road

      0  

    Default sencha app build production does not work

    sencha app build production does not work


    Hi,
    I do the following two things:
    1. sencha app create MyApp path
    2.sencha app build production

    I assume I can access http://localhost/MyApp/build/production, while I can not, anyone can help to tell me what's wrong?

    And I can access http://localhost/MyApp

    My question is, does that mean my production build failed, here is the log, it show succeed:

    [INFO] Deploying your application to C:\xampp\htdocs\testpackage\build\productio
    n
    [INFO] Copied sdk/sencha-touch.js
    [INFO] Copied app.js
    [INFO] Copied resources/css/app.css
    [INFO] Copied resources/images
    [INFO] Copied resources/icons
    [INFO] Copied resources/startup
    [INFO] Resolving your application dependencies (http://localhost:8088/testpackag
    e/index.html)
    [INFO] Found 139 dependencies. Concatenating all into 'C:\xampp\htdocs\testpacka
    ge\build\production\app.js'
    [INFO] Processed sdk/sencha-touch.js
    [INFO] Minifying sdk/sencha-touch.js
    [INFO] Processed app.js
    [INFO] Minifying app.js
    [INFO] Minifying resources/css/app.css
    [INFO] Minified sdk/sencha-touch.js
    [INFO] Minified app.js
    [INFO] Generated delta for: 'app.js' from hash: '2b5cd1995d8d87ac3516f6928cf7fc1
    6690f44a9' to hash: 'b2db556a358e56bf47c02ce2fe2b07bea4546baa'
    [INFO] Minified resources/css/app.css
    [INFO] Generated app.json
    [INFO] Embedded microloader into index.html
    [INFO] Generating checksum for appCache item: index.html
    [INFO] Generated cache.manifest




  2. #2
    Sencha - Services Team arthurakay's Avatar
    Join Date
    Sep 2008
    Location
    Antioch, IL
    Posts
    1,317
    Vote Rating
    23
    arthurakay has a spectacular aura about arthurakay has a spectacular aura about arthurakay has a spectacular aura about

      0  

    Default


    I just ran both of those commands on my Mac OSX, without doing anything else. It works just fine for me.

    Does "sencha app build production" actually output files into the /build/production/ folder? It does for me, and navigating to them in my browser (also on a localhost) seems to work just perfectly.
    Arthur Kay
    Developer Relations Manager, Sencha Inc.

    Twitter | Sencha Chicago User Group

  3. #3
    Sencha User
    Join Date
    Jul 2012
    Posts
    16
    Vote Rating
    0
    likesencha-dl is on a distinguished road

      0  

    Default


    Here is the three item need to clarify
    1. I am in Win7 + XAMPP env
    2. The web works fine before going to build/production
    3. The command successful generate the build/production folder and related file


    I am using latest sdk download from website, and my team mate met the same issue..

    We are not luck to have a mac to check whether it works fine there.

  4. #4
    Sencha - Services Team arthurakay's Avatar
    Join Date
    Sep 2008
    Location
    Antioch, IL
    Posts
    1,317
    Vote Rating
    23
    arthurakay has a spectacular aura about arthurakay has a spectacular aura about arthurakay has a spectacular aura about

      0  

    Default


    Nothing you've mentioned makes me think there's an issue with the SDK Tools specifically (at least not yet).

    When you try to view the /build/production/ folder in your browser, do you see any errors in the debugging console?
    Arthur Kay
    Developer Relations Manager, Sencha Inc.

    Twitter | Sencha Chicago User Group

  5. #5
    Sencha User
    Join Date
    Jul 2012
    Posts
    16
    Vote Rating
    0
    likesencha-dl is on a distinguished road

      0  

    Default


    [COLOR=red !important]Here is the error in chrome.

    XMLHttpRequest cannot load file:///C:/xampp/htdocs/hcmpilot/bui...?1343351056882. Cross origin requests are only supported for HTTP.[/COLOR]

    • [COLOR=red !important]index.html:67Uncaught TypeError: Cannot call method 'setConfig' of undefined[/COLOR]

  6. #6
    Sencha - Services Team arthurakay's Avatar
    Join Date
    Sep 2008
    Location
    Antioch, IL
    Posts
    1,317
    Vote Rating
    23
    arthurakay has a spectacular aura about arthurakay has a spectacular aura about arthurakay has a spectacular aura about

      1  

    Default


    If you're seeing that error in Chrome, you must not be trying to view /build/production/ on a localhost.

    That error message means that you're loading the index.html file via the filesystem (not a webserver, like localhost) - and Chrome does not allow AJAX requests locally from the filesystem.

    Try going to http://localhost/build/production/ (or whatever the correct path would be) and see if you still get any errors.
    Arthur Kay
    Developer Relations Manager, Sencha Inc.

    Twitter | Sencha Chicago User Group

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar