上传我的php项目文件以用于谷歌云AppEngine(Upload my php project files to use with google cloud AppEngine)

编程入门 行业动态 更新时间:2024-10-27 17:13:49
上传我的php项目文件以用于谷歌云AppEngine(Upload my php project files to use with google cloud AppEngine)

昨天我花了10多个小时阅读/测试谷歌云的教程,以及如何将它们用作动态网站的主机。

有了我脑子里的所有新信息,我都在忙着做什么。

我已经使用链接到我的域的IP构建了我的虚拟机实例,这很好用。 但是,我不能为我的生活弄清楚如何把我的项目文件放在那里。 我认为它会像“上传项目文件”,“与appengine链接”,“与云sql链接”,但似乎我错了?

在教程中,我通过克隆shell中的github链接上传了googles示例项目(教程)。

git clone https://github.com/GoogleCloudPlatform/getting-started-php.git

他们还说可以提取zip文件作为替代方案。

这些是唯一的方法吗? 我应该创建自己的github并在shell中将其锥形化吗?

是否可以将AppEngine与包含我的项目文件的存储桶相链接? (只是把问题扔出去)

奖励问题:一旦文件上传,我能够通过谷歌云进行编辑/开发,还是我需要编辑文件中的更改,然后将其重新上传到云端作为更新?

这是我第一次尝试让谷歌(或任何公司)主持我的网站,这对我来说完全是外国领土所以任何方向都非常感谢。

I've spent 10+ hours yesterday reading up about / testing tutorials with google cloud and how I can use them as a host for my dynamic website.

With all of the new information in my head, I'm scrambled on what to do.

I already have my Virtual Machine Instance built with an IP that links to my domain, this works fine. However, I cannot for the life of me figure out how to put my project files on there. I figured it would have been something like "upload project files", "link with appengine", "link with cloud sql", but it seems like I was wrong?

In the tutorials, I uploaded googles sample projects (tutorials) by cloning a github link in the shell.

git clone https://github.com/GoogleCloudPlatform/getting-started-php.git

They also said a zip file could be extracted as an alternative.

Are those the only way of doing this? Should I create my own github and cone it in the shell?

Is it possible to link an AppEngine with a bucket that has my project files on there? (just throwing the question out there)

bonus question: once the files are uploaded, am I able to edit/develop through google cloud or do I need to edit changes in my files, then re-upload it to the cloud as an update?

This is my first time trying to have google (or any company) host my website, and this is completely foreign territory for me so any direction is much appreciated.

最满意答案

你的问题中有几件事情混杂在一起。 让我试着解开它们。

如果要在App Engine上运行PHP驱动的网站,则无需创建虚拟机。 本文中有一个很好的概述https://cloud.google.com/appengine/docs/standard/php/an-overview-of-app-engine

在App Engine上运行PHP网站的方法是将代码部署到版本,您可以使用本地计算机上的源代码中的gcloud app deploy工具来完成。 我建议您首先阅读以下教程: https : //cloud.google.com/appengine/docs/standard/php/quickstart

目前无法将Google Cloud Storage存储桶与App Engine版本相关联,您必须使用gloud app deploy或使用gcloud内部使用的App Engine Admin API自行部署代码。

无法在云中编辑App Engine应用程序代码。

there are couple things mixed up in your question. Let me try to untangle them.

You don't need to create virtual machine if you want to run your PHP powered website on App Engine. There's a great overview in this article https://cloud.google.com/appengine/docs/standard/php/an-overview-of-app-engine

The way you run your PHP website on App Engine is by deploying your code to the version, you can do it using gcloud app deploy tool from your sources on your local machine. I recommend you to start by going through tutorial on here: https://cloud.google.com/appengine/docs/standard/php/quickstart

There's currently no way to link Google Cloud Storage bucket with App Engine version, you have to deploy your code yourself using either gloud app deploy or using App Engine Admin API that gcloud is using internally.

There's no way to edit your App Engine application code in the cloud.

更多推荐

本文发布于:2023-07-15 18:50:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1117476.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:上传   文件   项目   谷歌云   AppEngine

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!