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.
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.
Related
I would like to ask if it is possible to upload a laravel app to Google Cloud App Engine without using docker?
I tried to find any relevant resources but I can't find anything ob the internet that could help me wiith this. And if it is impossible, what should I do as my next step?
And if the only possible way is using docker, is it possible to add it after developing my laravel application?
I'm an absolute beginner on the Google app engine.
I have gone through the documentations for deploying a basic php app. The guidelines for deploying php7 apps aren't very clear to me.
Let's say I have a CMS written in php MySQLi. Assuming the project has privileges (in separate folders) for admin, users and guests, and I want to deploy it on Google app engine;
What are the configuration(s) that are most recommended for this option.
Asides the Google SDK, is there any GUI application that could help make the process easier?
Does the SDK also have version control on them? How do it update codes without re-deploying the whole project all over again?
For #1 you probably should go through Choosing an App Engine environment first. I can't help with more details as I'm not a PHP developer (which is also why I can't answer #2).
For #3 GAE itself only tracks versions at the entire service level, each deployment consisting of the entire set of the service's deployable artifacts.
However it may be able to skip unnecessarily uploading unchanged artifacts. I know it does it at least for python standard environment services if re-deploying from the same workspace, in rsync style. You can confirm this by increasing the deployment verbosity via the --verbosity option. I'm unsure if the fact that I was using git for the project mattered.
For the flexible environment services things are a bit more complex, since the deployment artifacts are docker images, see How can I speed up Rails Docker deployments on Google Cloud Platform?
If you'll have a multi-service app each service can be deployed individually, but a service deployment in itself is a complete one, not an incremental one, creating a new version of the service.
The app-level configs (applicable to all services) are individually re-deployable, without re-deploying any of the services:
To deploy the other configuration files of your service, you must
target and deploy each file separately. For example:
gcloud app deploy cron.yaml
gcloud app deploy dispatch.yaml
gcloud app deploy index.yaml
There is another way. The google console allows for mirroring of repositories withing the cloud service.
Locate "Source Repository", connect with you GitHub account and mirror a repository.
Its faster and easier if you ask me.
I install in the google cloud app engine the Apache and PHP.
I put the files in var/www/html/.
I try to connect to PHP by POST, it's not working.
seem the PHP files no running.
Please help me! Thank!
The way you use App Engine is by just deploying your applications, there is no need to install Apache or PHP on it. In fact there is a very simple guide over at https://cloud.google.com/appengine/docs/standard/php/quickstart which shows how to deploy a simple hello world application and you can start building from there.
I am new to google cloud plateform. I have a php application on my local host and want to set up this on App engine. I followed some documentation and used gcloud deploy command for example given in documents. It was working properly. But in examples it first clone a git repository and deploy a code from that on app engine. I know how to launch app engine instance. But I am not getting how I will upload code from my local host to app engine. I know app.yaml and config files are needed but my question is - how I will upload and deploy code to app engine even if I created app.yaml and config files.
I heard about google app engine launcer but didn't find any valid source for installing on ubuntu. Is there any client software that can be used to deploy my code on app engine or is it compulsory to first set up my code on git then use it as given in example in document.
Follow the quickstart in the documentation. It covers everything that you need:
Downloading the Cloud SDK (The launcher is ancient and deprecated, don't use it.)
Creating a Cloud Platform project in case you haven't yet.
Running locally, which you've already figured out.
Deploying your project to App Engine using the gcloud app deploy <path_to_app.yaml> command.
You don't need or want the launcher. You don't need to do anything with git.
After installing google cloud SDK and following all instruction on here i sucessfully set up local development server and php application.
I am running a PHP Project (Drupal-Multisite-Enviroment) on Azure web-role with WindowsAzurePHP SDK. Everything works pretty fine. Now I want to implement continuous-integration with TFS and i am wondering, if anybody has ever done it before, because i can't find any documentation about it.
I understand that the deployment process on Azure is connected to the build process on TFS. But what is the output of that azure-specific build-process? The deployment package *.cspkg and ServiceConfiguration.cscfg?
If so, do i just have to make a custom Build, that moves PHP files to a temp folder, calls the Azure SDK package-batch and pushes the package to Azure cloud afterwards?
I would appreciate it if you would share your experiences with me.
I have not done it before but yes... If you set your solution to build in Team Build you should get the Azure specific output only.
The easiest to get your PHP into the right place is with a pre or post build PowerShell.
https://github.com/tfsbuildextensions/CustomActivities/blob/master/Source/Scripts/GatherItemsForDrop.ps1
You should be able to use this PowerShell after build to put together your PHP with your azure bits that just got built.
Then create a post test PowerShell to deploy to Azure.
You can set PowerShell scripts to run by editing the build definitions and on the process tab opening the "advanced" sections.
Note: Make sure that you are using DefaulTemplate.12.xaml.