Skip to content

Instantly share code, notes, and snippets.

Created July 31, 2020 16:53
Show Gist options
  • Save armanhakimsagar/b092477f0517f35c2657f08ccfdffe90 to your computer and use it in GitHub Desktop.
Save armanhakimsagar/b092477f0517f35c2657f08ccfdffe90 to your computer and use it in GitHub Desktop.
Step :
1. give credit card info
2. create project
3. after that you can create instance.
4. now install apcache by ssh:
sudo apt get update
sudo apt install apache2
now if you run the ip in browser it should run apache.
5. now touch a file in var/www/html index.php. you can run it through browser
now install php : sudo apt-get php -y
now install mysql : sudo apt-get mariadb-server -y
now install git : sudo apt-get git
now git clone your project.
1. app engine : ui interface for build project laravel laravel,
others option queue, task also manage from here, here all our code exists.
2. kubernetes : Kubernetes (K8s) is an open-source system for automating deployment, scaling,
and management of containerized applications.
3. Images : An image is an individual virtual machine template. you can create it by snapshot.
first create instance then create snapshot. you can import this snapshot as you wnat.
4. Instances : An instance is a single virtual machine hosted on Google's infrastructure.
5. Image families : An image family is a set of images that are preconfigured for a specific purpose or using a specific architecture.
6. compute ingine: same like ec2. It's a virtual machine.
full guidelines :
7. google cloud sdk : cmd tools for tranfer file to local machine to live machine. deploy you project to apps engine.
you can do all the work from here.
8. sql : you can create sql by click sql. set there stroage & username & passsword & zone. advance is you will get auto backup & others many faility than phpmyadmin url access. after create it you will get all details for connection.
we will also get sql cmd in there. For sql access you can connect from can create table from workbench.
9. stroage : its stroage like s3. also set this stroage by region, space like this. after create a bucket & you will get a ui for upload file into it. after upload the file you will get a gsutil link for access it. you can also access it by gcp sdk cmd tool.
For use it from laravel :
composer required google/cloud-storage
Also create a service from gcp ui & it will give a json file. now download & set this json file in laravel env.
now use gcp cloud storage on top . use bucket method to create bucket , upload method to upload any file.
Amazan :
1. Amazon S3 : Its a object storage.Datas are organized in object.Amazon S3 or Amazon Simple Storage Service is a service offered by Amazon Web Services that provides object storage through a web service interface.Amazon S3 can be employed to store any type of object which allows for uses like storage for Internet applications, backup and recovery, disaster recovery, data archives, data lakes for analytics, and hybrid cloud storage.
2. EC2 : its a place where we can create virtual computer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment