windows 的 Galaxy Meteor 托管如何运作?

How does Galaxy Meteor hosting for windows work?

我有一个 node.js 应用程序是我从一位更高级的开发人员那里采用的。我想部署它,我知道它会起作用,因为他已经部署了好几次。我正在阅读这些说明:

https://galaxy-guide.meteor.com/deploy-quickstart.html

我用windows,他也是

部署如何工作?

请遵循这些说明:

Windows If you are using Windows, the commands to deploy are slightly different. You need to set the environment variable first, then run the deployment command second (the syntax is the same as everything you’d put for meteor deploy).

In the case of US East, the commands would be:

$ SET DEPLOY_HOSTNAME=galaxy.meteor.com $ meteor deploy [hostname] --settings path-to-settings.json

我是否应该直接转到笔记本电脑上的源目录并 运行 这些命令?然后会发生什么?源是否从我的笔记本电脑上传到他们的服务器,然后他们的魔法会处理剩下的事情?

当我想更改代码时怎么办?我是否只是做同样的事情,指向一个现有的容器,然后他们再次施展魔法?

Am I just supposed to go to the source directory on my laptop and run these commands? What then happens? Is the source uploaded to their server from my laptop and then their magic takes care of the rest?

这不是魔术。你基本上去你的开发根目录并输入这些命令。在引擎盖下,它会构建您的生产应用程序(包括用于优化的缩小和生产标志),一旦完成,就会打开与 aws 基础设施的连接并推送构建包。

参见:https://github.com/meteor/meteor/blob/devel/tools/meteor-services/deploy.js

在服务器上会有一些安装和 post 安装脚本为您设置所有环境,如果过程中没有错误,启动您的应用程序。

这些脚本当然有一些自动化,具体取决于您的帐户设置和您输入的命令。

What about when I want to make a change to the code? Do I just do the same thing, poiting to an existing container and, again, they do the magic?

您将不得不再次重建(使用给定的部署命令),但 Galaxy 会处理其余部分。