1.什麼是Cloud Toolkit
Cloud Toolkit 是開發者本地 IDE 中的一款外掛,可以幫助開發者更高效地開發、測試、診斷並部署應用。通過這個外掛,可以==將本地應用一鍵部署到任意伺服器==,甚至部署到雲端上(阿里雲的ECS、EDAS、Kubernetes 和 小程式雲 等);並且還內建了 Arthas 診斷、Dubbo工具、Terminal 終端、檔案上傳和 MySQL 執行器等工具。

2.使用Cloud Toolkit前部署應用的方式
1.編寫應用程式碼
2.打包應用

3.登入伺服器
4.將應用包上傳到伺服器

5.啟動應用

或者使應用在後臺執行

6.訪問應用

3.使用Cloud Toolkit後部署應用的方式
1.安裝Cloud Toolkit外掛(這裡以IDEA為例)
確保 IntelliJ 、PyCharm、PhpStorm等在 2018.1 或更高版本,本文以 IntelliJ 為例
第 1 步:開啟 Intellij 的 Settings ( Windows下 ) 或 Preferences( Mac下 )視窗
第 2 步:進入 Plugins 選項,搜尋“Alibaba Cloud Toolkit”,並安裝即可,如下圖:


外掛安裝成功後,重啟 Intellij,您可以在工具欄看到 Alibaba Cloud Toolkit 的圖示。


第3步:填寫邀請碼 4QEFVD


2.在Cloud Toolkit中配置伺服器資訊

3.配置並上傳,部署成功
方式一(帶打包的過程,適合使用maven的專案):
開啟部署到主機的配置皮膚






方式二(只上傳檔案,需要自己手動先打包,適合沒有使用maven的專案):



4.訪問介面即可

4.以前的部署方式和使用Cloud Toolkit部署的區別
當應用更新程式碼需要重新部署時,以前的部署方式需要重新執行收下部署步驟:
- 打包
- 使用ssh工具登入伺服器
- 將打好包的應用上傳到伺服器
- 在伺服器上手動或者使用指令碼重啟應用
而使用Cloud Toolkit只需要以下步驟
- 開啟Cloud Toolkit部署皮膚,點選執行即可

Cloud Toolkit官網連結:點選進入官網https://www.aliyun.com/product/cloudtoolkit