Sencha Touch Deployment Options?

亡梦爱人 提交于 2020-01-24 20:37:07

问题


I am very new to ExtJS and Sencha Touch. I am trying to learn Sencha Touch, and was able to get a demo version running locally using 'sencha watch'. But I want to deploy this somewhere like Heroku, Azure, AWS or wherever.

How do I get this in production?

I'd appreciate it, CMazz


回答1:


How do I get this in production?

Developing your application simply means editing source code and refreshing the browser. All source files are dynamically loaded on demand. There's no building process involved. When it comes to deployment, Sencha Cmd provides the following four build environment options:

  • Production environment

    Creates a production build that is normally hosted on a web server and serves multiple clients (devices). The build is offline-capable using HTML 5 application cache, and is enabled to perform over-the-air updates. You can build using below command :-

     sencha app build //Or
     sencha app build production
    
  • Testing environment

    Intended for QA prior to production. All JavaScript and CSS source files are bundled, but not minified, which makes it easier to debug. You can build using below command :-

    sencha app build testing
    

After run the following command, In you app there is build folder. See below screenshot

Now if want to host production then go inside of production folder then after build you code in to your web server (Heroku, Azure, AWS or wherever) and same for testing environment.

For more details you can refers Sencha docs



来源:https://stackoverflow.com/questions/50866733/sencha-touch-deployment-options

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!