I am using Sencha Architect below mentioned is the configuration that i am using
version: 3.0.4.1386
channel: 3.0.1-stable
platform: 1.3.0.803
cmd: 4.0.4.84
framework: Ext JS 4.2.x
I had placed index.jsp in my application folder and removed index.html, but when i do any changes to my ExtJS MVC application and then save and run it on apache tomcat server, it creates a new index.html file in my application folder and tries to run this newly created index.html.
I want to set index.jsp as my default startup page for the ExtJS application.
What am i missing here?
Any kind of help is appreciated. Thanks.
Correct the app.json descriptor, adding the property:
app.indexHtmlPath
{
"name": "ApplicationName",
...
"app.indexHtmlPath": "index.jsp"
....
}
Details in application sencha folder: .sencha/app/defaults.properties file.
Form it:
# defaults to index.html, but may be overridden in app.json
app.indexHtmlPath=index.html
Sencha Cmd docs
Related
Is there any possible to add a config file for Vue project to config API URL?
Now I have a Vue web project, and a .Net Web API project.
I have to build the web project every time that I have to publish to different environment.
Is there any possible to add a config file like web.config for .Net Web API that I can edit it any time I want?
What I expected is, I can have a file to edit anytime I want after run command 'npm run build'. Is this possible
yes you can add config file if you use webpack
/config/prod.env.js
module.exports = {
NODE_ENV: '"production"', // or development
BASE_URL: '"https://BASEURL/"',
API_URL: '"https://APIURL/"',
}
Assig in build file and use
process.env.API_URL
reference : https://alligator.io/vuejs/working-with-environment-variables/
I would like to know how to change the default index.html file. I have created a classic project (for mobile web). In that I have created a .css file which includes my custom styles. Now I would like to include this file in index.html, so that those styles will apply on my application. But haven't seen the index.html file. After build, I am able to see this file in build folder. May I know how to update the index.html file?
Thanks in Advance,
Swathi.
Appcelerator uses XML for views, TSS for styling, and JS for controllers. Then Titanium compiles your source code into the native API (HTML for mobile web). Because you can also compile for iOS, Android, and Windows, your output is converted appropriately to your build directory. When you create a new Alloy project, you will find the default index.xml, index.tss, and index.js in the app views, styles, and controllers directories respectively. So to control index.html, edit these 3 index.* files.
To generate a Sencha Touch project from the command line tools, i followed the following steps as described in many forums and also in the official Sencha touch doc. But it couldn't find the generate keyword.
Steps :
Navigate to the touch-2.2.1 SDK folder which is located at /Application/XAMPP/htdocs/touch-2.2.1/
sencha generate app MyWeb ../MyWeb/myweb
But, it failed to create a path at this specified location.
Can someone guide me with the steps to solve this?
Use following steps:
Go to directory where you have put Sencha Touch folder.
e.g. On Linux, if you have put it in Document/sencha/sencha_touch2.2.1 go to that directory using cd Documents/sencha/sencha_touch2.2.1.
Use command to generate app :
sencha generate app appname destination directory path/your app name.
e.g. You want to create app in www directory,use
sencha generate app myapp /var/www/myapp1
here myapp is app name and myapp1 is a directory in www that contains all application structure.
Try this:
sencha -sdk /path/to/sencha-touch-2-sdk generate app MyApp /path/to/www/myapp
Here,
/path/to/sencha-touch-2-sdk is path to your Sencha Touch library folder
/path/to/www/myapp is the path to the app
Follow following steps it may be helpful
1> Download Sencha CMD
2> Install Sencha CMD for that you required java installed on machine set environmental path of java.
3> After successful installation sencha cmd set sencha cmd environmental path.
4> Now open terminal/commandprompt type sencha if everything work fine it shows sencha help and sencha installed cmd version.
5> Now download sencha touch extract sencha touch folder in any directory you want.
6> After that go to that sencha touch folder from terminla or command prompt.
7> Then type following command for generating new app.
sencha generate app app_name /path/to-set-application/app_name
8> Open Webkit browser like chrome or safari type your folder path like
localhost/app_name
It Work !
In my Sencha 2.0 App I had this in the app.json to defined where it should put the "compiled" javascript, but in Sencha 2.1 example apps its removed. It isnt respected after I updated to Sencha 2.1, anyone ones what happend to this?
/**
* Default paths to build this application to for each environment
*/
"buildPaths": {
"testing": "../../../../parentapp/build/testing",
"production": "../../../../parentapp/build/production",
"package": "../../../../parentapp/build/package",
"native": "../../../../parentapp/build/native"
},
Sencha Touch 2.1 and Sencha Cmd 3.1 no longer use app.json's buildPaths.
These are now defined (well, scattered) in a sequence of build.xml, build-impl.xml, and sencha.cfg files.
Display hidden directories/file and navigate to directory for your app. In this folder you will find a hidden folder named ".sencha". Within this folder you will find a folder "app" as well as "workspace" possibly (workspace is not a default creation). Inside the app folder is sencha.cfg where you can define the default build path for your application.
This option will place your builds in a folder "build" above your app folder:
app.build.dir=${app.dir}/../build
Using Sencha Cmd you can then type the following line, with the optional suffix defining type of build (defaults to production).
sencha app build (testing|production|package|native)
Package builds use a file called packager.json for build details.
I am working with sencha touch 2 in MVC format. I have created a cache.manifest file to bring my app offline.
CACHE MANIFEST
index.html
app.js
guide.css
app/model/Contact.js
app/model/Injury.js
app/view/IncidentForm.js
app/view/Home.js
app/view/DivisionSelect.js
app/view/InjuryResponse.js
app/view/EmergencyContact.js
app/controller/Core.js
i/amcor-app-bg#2.png
i/amcor-bg-logo#2.png
i/amcor-logo.png
i/amcor-tb-logo2x.png
i/arrow_right.png
i/ec-icon#2.png
i/home_icon.png
i/in-icon#2.png
i/ir-icon2x.png
i/ir-icon#2.png
i/ir-toolbar-bg2x.png
st2/builds/sencha-touch-all-compat.js
st2/resources/css/sencha-touch.css
NETWORK:
*
My issue is that the cache.manifest file does not seem to recognize any of my js files except for app.js. When I am working online it seems to cache properly but when I go offline the cache only returns index.html, app.js, and the sencha files. Can the cache.manifest file only have one .js file?
You should really try to use the tools SDK then you don't have to worry at all.
The Microloader helps keep things up to date.
Its a bit light on its error checking output and you must conform to the MVC app layout created by the SDK tools but once its running "it just works".
If the "compile" hangs its probably a missing ref.