Sencha Touch Deployment Options?

2019-08-03 18:42发布

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条回答
萌系小妹纸
2楼-- · 2019-08-03 19:00

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

img

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

查看更多
登录 后发表回答