如何在已经具有PHP环境的AWS中在现有实例(EC2)中部署nodejs?

发布于 2025-01-17 18:42:50 字数 319 浏览 2 评论 0原文

从标题中了解,我必须在现有实例上的nextJ上部署nodejs应用程序。 情况是:

  1. 我们可以用已经具有PHP环境的实例部署NodeJS吗? (我认为我们通常每天在本地计算机上工作,这是可能的)。
  2. 如何为此创建基本管道? (我在AWS中的弹性beanstalk上浏览了一些教程,但是它为我不想要的新实例创建了一个新实例
  3. 。文件夹。

另外,我听说有一些谣言,即当管道构建我们的项目时,它将删除该实例中的所有现有项目。 (这真的是真的)。

我只有书籍知识,但从未对此做任何实践。

请帮助我。

谢谢。

As you understand from the title, that I have to deploy an nodejs application build on Nextjs on the existing instance.
The situation is:

  1. can we deploy nodejs with the instance that already have php environment? (I think it is possible as we normally work on our local computer on daily basis).
  2. how to create a basic pipeline for that? (I go through some tutorials on the Elastic Beanstalk in AWS, but it creates a new instance for that which I don't want, is there is any alternative ways to do that.)
  3. how to connect pipeline with instance and also with the project folder.

Also, I've heard some rumors that, when the pipeline builds our projects, then it will delete all the existing projects in the instance. (is it really true).

I only have the book knowledge, but never done a practical on that.

Please help me out.

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文