如何在 Amazon ec2 ubuntu 上更新 meteor 应用程序



我有一个在 ubuntu 服务器上运行的 meteor 应用程序。我正在尝试通过 cd 将应用程序更新到原始克隆中并运行git pull以从 github 获取最新版本。

然后我跑meteor bundle ../bundle.tgz然后cd ..tar -zxvf bundle.tgz解压缩它。

这些更改似乎没有得到更新。我什至尝试完全删除原始捆绑包并再次将其解开。当我这样做并尝试访问站点时,没有任何加载,并且出现一个 500 错误,指出找不到脚本。

我永远使用来保持我的服务器运行,这是我的更新启动脚本:

# /etc/init/meteor.conf
start on (local-filesystem)
stop on shutdown
script
        cd /home/ubuntu
        export PORT=80 MONGO_URL=mongodb://localhost:27017/meteor-tutorials ROOT_URL=http://www.ec2-54-211-152-59.compute-1.amazonaws.com
        exec forever start bundle/main.js
end script

当我最初上传应用程序时,我必须运行sudo service meteor start.我将如何更新此应用程序?

您可以使用我的安装脚本,或者查看其源代码并选择所需的内容。抱歉,这不是您确切问题的详细答案。

https://github.com/matb33/meteor-ec2-install

最新更新