發表文章

目前顯示的是有「GCP」標籤的文章

Google新功能

Anthos 有了 Anthos,您就能在現有的內部部署資產或公用雲端環境中建構及管理現代化的混合型應用程式。這項服務以 Google 創新研發的開放原始碼技術為基礎 (包含 Kubernetes、Istio 和 Knative),可維持內部部署系統和雲端環境之間的一致性。Anthos 可協助加速應用程式的開發作業,並讓您的企業使用服務網格、容器和微服務等革命性的技術,藉此取得策略優勢。 Cloud Code Cloud Code 隨附的工具能協助您以輕鬆快速的方式編寫、部署及偵錯雲端原生的應用程式。這項產品提供 Visual Studio Code 和 IntelliJ 等 IDE 的擴充功能,方便您在 Kubernetes 上針對程式碼快速進行疊代、偵錯及部署等作業。 Kubernetes Kubernetes是用於自動部署、擴展和管理容器化應用程式的開源系統。該系統由Google設計並捐贈給Cloud Native Computing Foundation來使用。 它旨在提供「跨主機集群的自動部署、擴展以及運行應用程式容器的平台」。 它支持一系列容器工具, 包括Docker等。

GCP Deploy Laravel

Run Create a new Laravel project using the laravel installer. laravel new blog Go to the blog directory cd blog Run the app with the following command: php artisan serve Visit  http://localhost:8000  to see the Laravel Welcome page. Deploy Create an app.yaml file with the following contents: runtime: php72 env_variables: ## Put production environment variables here. APP_KEY: YOUR_APP_KEY APP_STORAGE: /tmp VIEW_COMPILED_PATH: /tmp SESSION_DRIVER: cookie Replace YOUR_APP_KEY in app.yaml with an application key you generate with the following command: php artisan key:generate --show Modify bootstrap/app.php by adding the following block of code before the return statement. This will allow you to set the storage path to /tmp for caching in production. # [START] Add the following block to `bootstrap/app.php` /* |-------------------------------------------------------------------------- | Set Storage Path |------------------------------------...

GCP 安裝步驟

準備開始 先安裝 Cloud SDK 更新Components gcloud components update 新建專案 gcloud projects create [YOUR_PROJECT_NAME] --set-as-default 顯示所有專案 gcloud projects list 確認專案是否建立 gcloud projects describe [YOUR_PROJECT_NAME] 在專案下建立App gcloud app create --project=[YOUR_PROJECT_NAME] 選擇部屬地區  參考網址 地區 區域 位置 asia-east1 a、b、c 台灣彰化縣 asia-east2 a、b、c 香港 asia-northeast1 a、b、c 日本東京 asia-northeast2 a、b、c 日本大阪 asia-south1 a、b、c 印度孟買 asia-southeast1 a、b、c 新加坡裕廊西 australia-southeast1 a、b、c 澳洲雪梨 europe-north1 a、b、c 芬蘭哈米納 europe-west1 b、c、d 比利時聖吉斯蘭 europe-west2 a、b、c 英國倫敦 europe-west3 a、b、c 德國法蘭克福 europe-west4 a、b、c 荷蘭埃姆斯港 europe-west6 a、b、c 瑞士蘇黎世 northamerica-northeast1 a、b、c 加拿大魁北克省蒙特婁 southamerica-east1 a、b、c 巴西奧薩斯庫 (聖保羅) us-central1 a、b、c、f 美國愛荷華州康索布魯夫 us-east1 b、c、d 美國南卡羅來納州蒙克斯科納 us-east4 a、b、c 美國北維吉尼亞州阿什本 us-west1 a、b、c 美國奧勒岡州達勒斯 us-west2 a、b、c 美國加州洛杉磯 複製Helloworld到本機端測試 git clone https://github.com/GoogleCloudPlatform/php-docs-samples.git 進hello...