server - AngularDart-上传到共享托管服务器

标签 server dart angular-dart

因此我在机器上启动并运行了AngularDart应用程序(我使用了stagehand)。现在是我要将其上传到共享托管服务器的时间。我的问题是:这样做的正确程序是什么?因为显然Dart不能在本地运行,并且需要编译的js文件。 (我已经可以访问服务器的文件管理器了)。

提前致谢

最佳答案

使用build工具的pub命令。

https://webdev.dartlang.org/tools/pub/pub-build

Use pub build when you’re ready to deploy your web app. When you run pub build, it generates the assets for the current package and all of its dependencies, putting them into new directory named build.

关于server - AngularDart-上传到共享托管服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43174124/

相关文章:

php - PHP 和 libapache2_mod_php 有什么区别

list - ( Dart/flutter )从混洗的列表中拉出一项而不重新生成列表

dart - Flutter - 如何从 Assets 中读取 500MB 的文本文件(无 JSON)

dart - 如何在 pubspec.yaml 中指定dependency_overrides?

dart - Pub 获取 'Connection closed before full header was received' Angular + Polymer

返回函数期间创建的 Javascript 变量

java.lang.RuntimeException : java. security.NoSuchAlgorithmException:找不到为 SecureRandom 配置的类(提供者:IBMJCE)

java.lang.OutOfMemory错误: unable to create new native thread while starting wildfly

sockets - 如何在 Dart 中将字符串转换为 utf8?

dart - 带有变压器和路由器的Angular 2.0 Dart