简体   繁体   English

如何在Amazon EC2 Ubuntu上更新流星应用

[英]How do I update a meteor app on amazon ec2 ubuntu

I have a meteor app running on an ubuntu server. 我有一个在ubuntu服务器上运行的流星应用程序。 I'm trying to update the app by cd into the original clone and running git pull to get the latest from github. 我正在尝试通过cd将应用程序更新为原始克隆,然后运行git pull从github获取最新信息。

I then run meteor bundle ../bundle.tgz and then cd .. and tar -zxvf bundle.tgz to untar it. 然后,我运行meteor bundle ../bundle.tgz ,然后运行cd ..tar -zxvf bundle.tgz将其解压缩。

The changes do not seem to be getting update. 所做的更改似乎没有更新。 I even tried removing the original bundle completely and untaring it again. 我什至尝试完全删除原始捆绑包,然后再次将其去皮。 When I do that and try to access the site Nothing load and there is a 500 error saying that the script can't be found. 当我这样做并尝试访问该网站时,没有任何负载,并且出现500错误,表明找不到该脚本。

I'm using forever to keep my server running, Here is my updstart script: 我一直在使用以保持服务器运行,这是我的updstart脚本:

# /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

When I initially uploaded the app I had to run sudo service meteor start . 最初上传应用程序时,我必须运行sudo service meteor start How would I go about updating this app? 我将如何更新此应用程序?

You can use my install script, or look through its source and pick what you need. 您可以使用我的安装脚本,也可以浏览其源代码并选择所需的内容。 Sorry this isn't a detailed answer to your exact problem. 抱歉,这不是您确切问题的详细解答。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM