Sencha Touch部署选项? [英] Sencha Touch Deployment Options?

查看:50
本文介绍了Sencha Touch部署选项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是ExtJS和Sencha Touch的新手.我正在尝试学习Sencha Touch,并能够使用"sencha watch"在本地运行演示版本.但我想将其部署在Heroku,Azure,AWS等任何地方.

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?

我会很感激的,CMazz

I'd appreciate it, CMazz

推荐答案

我该如何在生产中使用它?

How do I get this in production?

开发应用程序仅意味着编辑源代码和刷新浏览器.所有源文件均按需动态加载.没有任何构建过程.在部署方面,Sencha Cmd提供了以下四个构建环境选项:

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:

  • 生产环境

创建通常在Web服务器上托管并为多个客户端(设备)提供服务的生产版本.使用HTML 5应用程序缓存,该版本可脱机使用,并且可以执行无线更新.您可以使用以下命令进行构建:-

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

  • 测试环境

    打算在生产前进行质量检查.所有JavaScript和CSS源文件都捆绑在一起,但没有缩小,这使得调试起来更容易.您可以使用以下命令进行构建:-

    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
    

  • 运行以下命令后,在您的应用程序中有一个 build 文件夹.参见下面的屏幕截图

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

    现在,如果要托管生产,则进入生产文件夹,然后在将代码构建到Web服务器(Heroku,Azure,AWS或任何地方)中后,并用于测试环境.

    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.

    有关更多详细信息,您可以参考 Sencha文档

    For more details you can refers Sencha docs

    这篇关于Sencha Touch部署选项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆