昨天我花了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.gitThey 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.
更多推荐
发布评论