Note that there are some explanatory texts on larger screens.

plurals
  1. POBuild application for production
    primarykey
    data
    text
    <p>i found this tutorial that explains how to build your application for production. </p> <p>My project structure is as follows;</p> <pre><code>ProjRoot --&gt; app *--&gt; ext (this is the extjs folder) *--&gt; model (model folder it contain the model files of the projec) *--&gt; view *--&gt; controller *--&gt; store *--&gt; resources *--&gt; servercode --&gt; app.html --&gt; app.js </code></pre> <p>As the tutorial explained i navigated to ProjRoot from command prompt and typed the following code;</p> <pre><code>sencha create jsb -a http://localhost/ProjRoot/app.html -p app.jsb3 </code></pre> <p>This created a file, which is 1kb app.jsb3</p> <p>Then i executed the following code </p> <pre><code>sencha build -p app.jsb3 -d . </code></pre> <p>This produced 2 files. </p> <p>1.) app-all.js 3KB</p> <p>2.) all-classes.js 1KB</p> <p><code>app-all.js</code> contained code of the app.js file concatenated together, while <code>all-classes.js</code> didn't have any code inside it; i found the following code in it.</p> <pre><code>/* Copyright(c) 2012 Company Name */ </code></pre> <p>According to the tutorial, i should be able to add these 2 files in the server and make the application up. But unfortunately it's not working for me. Help ?</p> <p>And also, i added the launching html file, where i refer the above 2 files in that.</p> <p>Can someone please give me step by step instructions or tell me what i missed?</p> <p><strong>UPDATE</strong></p> <p>I get the following error when i type the command as described in your post. How can i resolve it ?</p> <pre><code>C:\xampp\htdocs\ProjRoot&gt;sencha create jsb -a a pp.html -p proj.jsb3 -v Error thown from your application with message: TypeError: 'null' is not a const ructor </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload