简体   繁体   English

在AWS上部署角度项目和python服务

[英]Deploying angular project & python services on AWS

We have an angularJS project which uses python web services. 我们有一个使用python web服务的angularJS项目。 As of now we have pushed both the codes on AWS EC2 instance. 截至目前,我们已经在AWS EC2实例上推送了这两个代码。

And running following commands to make it up forever: 并运行以下命令以永久弥补:

nohup grunt serve & (for angular project)
nohup python Sample.py & (for python services)

Whenever any code changes are made we git pull it and again run above commands. 每当进行任何代码更改时,我们都会将其拉出并再次运行上面的命令。 I know this approach cannot be used for Production as Grunt should be only used for development 我知道这种方法不能用于生产,因为Grunt应该只用于开发

Can someone suggest best way to streamline the process right from the servers to deployment? 有人可以建议从服务器到部署简化流程的最佳方法吗?

what you can do is push the code after building and use forever to run your node project, so take if you take pull you dont need to run command again. 你可以做的是在构建之后推送代码并永远使用来运行你的节点项目,所以如果你采取拉动你不需要再次运行命令。 the only case when you need to run command again is when your index page has some changes. 当您需要再次运行命令时,唯一的情况是索引页面有一些更改。

make sure you run your app behind a web server. 确保在Web服务器后面运行您的应用程序。

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

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