部署 aurelia.cli 构建的应用程序 [英] Deploying an aurelia.cli built app

查看:21
本文介绍了部署 aurelia.cli 构建的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经构建了一个没有后端的简单 aurelia 网页,现在我有兴趣投入生产.我使用 Aurelia-cli 进行捆绑,希望这会很简单,但我不确定如何进行.我应该将哪些文件上传到服务器才能使站点正常工作?感谢您的帮助.

I have built a simple aurelia web page without a back end, and I am now interested in going into production. I used Aurelia-cli for bundling, hoping this would be simple, but I am not sure how to proceed. Which files should I upload to the server to have the site working? Thanks for the help.

推荐答案

简而言之:

  • au build --env prod
  • index.html 复制到服务器上的主部署文件夹
  • /scripts 文件夹复制到同一位置.
  • au build --env prod
  • copy the index.html to your main deployment folder on your server
  • copy the /scripts folder to the same location.

这篇关于部署 aurelia.cli 构建的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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