SlideShare a Scribd company logo
1 of 59
為了你 一直走在最前面 Always Ahead 1
中華雲創平台
PHP 開發環境介紹
為了你 一直走在最前面 Always Ahead 2
Outline
• PHP 開發環境介紹
– 初始
• 申裝、初始原始碼下載、…
– 開發
• 注意事項、上傳、本地端開發…
– 部署
• 整合測試、原始碼版本管理、版本選定、…
– 環境管理
• 系統資訊、系統記錄、資源監控、…
• 資料庫管理
為了你 一直走在最前面 Always Ahead 3
• 申租環境
– 首頁申租
– 同意條款
– 選擇PHP環境
– PHP環境資料設定
• 選定範本(Template)
– Empty template
» Directory Structure
» Redirect
– MVC Framework
» CodeIgniter
初始-申租(1/4)
為了你 一直走在最前面 Always Ahead 4
初始-申租(2/4)
• 申租環境
– 首頁申租
– 同意條款
– 選擇PHP環境
– PHP環境資料設定
• 選定範本(Template)
– Empty template
» Directory Structure
» Redirect
– MVC Framework
» CodeIgniter
為了你 一直走在最前面 Always Ahead 5
初始-申租(3/4)
• 申租環境
– 首頁申租
– 同意條款
– 選擇PHP環境
– PHP環境資料設定
• 選定範本(Template)
– Empty template
» Directory Structure
» Redirect
– MVC Framework
» CodeIgniter
為了你 一直走在最前面 Always Ahead 6
初始-申租(4/4)
• 申租環境
– 首頁申租
– 同意條款
– 選擇PHP環境
– PHP環境資料設定
• 選定範本(Template)
– Empty template
» Directory Structure
» Redirect
– MVC Framework
» CodeIgniter
為了你 一直走在最前面 Always Ahead 7
• 申租環境
• 權限管理
– 管理
– 唯讀
– 確認權限
初始-權限管理(1/4)
為了你 一直走在最前面 Always Ahead 8
• 申租環境
• 權限管理
– 管理
– 唯讀
– 確認權限
初始-權限管理(2/4)
為了你 一直走在最前面 Always Ahead 9
• 申租環境
• 權限管理
– 管理
– 唯讀
– 確認權限
初始-權限管理(3/4)
為了你 一直走在最前面 Always Ahead 10
• 申租環境
• 權限管理
– 管理
– 唯讀
– 確認權限
初始-權限管理(4/4)
為了你 一直走在最前面 Always Ahead 11
• 申租環境
• 帳號管理
• 初始原始碼下載 – Git Clone from GIT Repo…
初始-原始碼下載
為了你 一直走在最前面 Always Ahead 12
GIT
• 建議環境
– Linux/Mac + git client
– Windows + TortoiseGit
為了你 一直走在最前面 Always Ahead 13
GIT – U*ix(1/3)
• 建議環境
– Linux/Mac + git client
• git clone
• Directory Structure
• README.txt
為了你 一直走在最前面 Always Ahead 14
GIT – U*ix(2/3)
• 建議環境
– Linux/Mac + git client
• git clone
• Directory Structure
• README.txt
為了你 一直走在最前面 Always Ahead 15
GIT – U*ix(3/3)
• 建議環境
– Linux/Mac + git client
• git clone
• Directory Structure
• README.txt (請讀我)
為了你 一直走在最前面 Always Ahead 16
GIT - Windows(1/6)
• 建議環境
– Windows + TortoiseGit
• Install TortoiseGit + mSysGit
為了你 一直走在最前面 Always Ahead 17
GIT - Windows(2/6)
• 建議環境
– Windows + TortoiseGit
• Install TortoiseGit + mSysGit
• Edit global .gitconfig
為了你 一直走在最前面 Always Ahead 18
GIT - Windows(3/6)
• 建議環境
– Windows + TortoiseGit
• Install TortoiseGit + mSysGit
• Edit global .gitconfig
• Git Clone
為了你 一直走在最前面 Always Ahead 19
GIT - Windows(4/6)
• 建議環境
– Windows + TortoiseGit
• Install TortoiseGit + mSysGit
• Edit global .gitconfig
• Git Clone
為了你 一直走在最前面 Always Ahead 20
GIT - Windows(5/6)
• 建議環境
– Windows + TortoiseGit
• Install TortoiseGit + mSysGit
• Edit global .gitconfig
• Git Clone
• Directory Structure
為了你 一直走在最前面 Always Ahead 21
GIT - Windows(6/6)
• 建議環境
– Windows + TortoiseGit
• Install TortoiseGit + mSysGit
• Edit global .gitconfig
• Git Clone
• Directory Structure
• README.txt (請讀我)
為了你 一直走在最前面 Always Ahead 22
GIT
• hicloud PaaS PHP 最常使用的指令
– commit (提交)
• commit codes into LOCAL GIT
– push
• push codes to hicloud PaaS PHP
– pull
• fetch codes from hicloud PaaS PHP & merge …
– clone
• copy your GIT repository from hicloud PaaS PHP
– log
為了你 一直走在最前面 Always Ahead 23
開發
• hicloud PaaS PHP directory structure
• HiPaaS.inc.php
– _HiPaaSDIR_
– HiPaaS::syslog()
– HiPaaS::sys_get_temp_dir()
• git push!
– http://latest.<環境名稱>.hicloud.net.tw/
• 本地端開發
為了你 一直走在最前面 Always Ahead 24
開發-Directory Structure(1/2)
• Git clone 下來的目錄
– /Some/Path/On/VM/_HiPaaSDIR_
• _HiPaaSDIR_/htdocs/
– Web DocumentRoot
– 此目錄下的檔案可以直接被 httpd 讀取, 請小心
– 建議把 CSS/JS/Images 放在 htdocs 目錄下
– 如果要求的檔案不存在,會被導向 /index.php
• MVC Framework 機制
• 請視情況處理 404 Not Found 或是其他情況
• hicloud PaaS PHP 強烈建議使用 MVC Framework
為了你 一直走在最前面 Always Ahead 25
開發-Directory Structure(2/2)
• _HiPaaSDIR_/(其他目錄或檔案)
– 這些目錄下的檔案無法直接被 httpd 讀取
• 請使用 PHP 程式讀取
– 建議放在非 htdocs 目錄下的檔案
• 敏感資料 (e.g., Database User/Password include file)
• SQLite db file
• PHP Libraries (libraries, classes, …)
• MVC Framework files (system, application, …)
為了你 一直走在最前面 Always Ahead 26
開發-HiPaaS.inc.php
• HiPaaS.inc.php 定義了…
– _HiPaaSDIR_
• 每個用戶、環境略有不同,請用此常數視為根目錄
– HiPaaS::syslog()
• 應用服務日誌使用
– HiPaaS::sys_get_temp_dir()
• 取得暫存目錄使用
– …未來會依使用者回饋新增不同常數或函數
為了你 一直走在最前面 Always Ahead 27
開發-push to hicloud PaaS (1/9)
• Git push
– Windows
• Edit (new) files
• (Add new files)
• Commit
• Push
為了你 一直走在最前面 Always Ahead 28
開發-push to hicloud PaaS (2/9)
• Git push
– Windows
• Edit (new) files
• (Add new files)
• Commit
• Push
為了你 一直走在最前面 Always Ahead 29
開發-push to hicloud PaaS (3/9)
• Git push
– Windows
• Edit (new) files
• (Add new files)
• Commit
• Push
為了你 一直走在最前面 Always Ahead 30
開發-push to hicloud PaaS (4/9)
• Git push
– Windows
• Edit (new) files
• (Add new files)
• Commit
• Push
為了你 一直走在最前面 Always Ahead 31
開發-push to hicloud PaaS (5/9)
• Git push
– Windows
• Edit (new) files
• (Add new files)
• Commit
• Push
為了你 一直走在最前面 Always Ahead 32
開發-push to hicloud PaaS (6/9)
• Git push
– Windows
• Edit (new) files
• (Add new files)
• Commit
• Push
為了你 一直走在最前面 Always Ahead 33
開發-push to hicloud PaaS (7/9)
• Git push
– Linux/Mac
• Edit (new) files
• (Add new files)
為了你 一直走在最前面 Always Ahead 34
開發-push to hicloud PaaS (8/9)
• Git push
– Linux/Mac
• Edit (new) files
• (Add new files)
• Commit
• Push
為了你 一直走在最前面 Always Ahead 35
開發-push to hicloud PaaS (9/9)
• Git push
– Linux/Mac
• Edit (new) files
• (Add new files)
• Commit
• Push
為了你 一直走在最前面 Always Ahead 36
開發-pull from hicloud PaaS(1/2)
• Git pull, 取得協同開發最新版程式
– Windows
為了你 一直走在最前面 Always Ahead 37
開發-pull from hicloud PaaS(2/2)
• Git pull, 取得協同開發最新版程式
– Linux/Mac
為了你 一直走在最前面 Always Ahead 38
開發-Show log(1/2)
• Git log
– Windows
為了你 一直走在最前面 Always Ahead 39
開發-Show log(2/2)
• Git log
– Linux/Mac
為了你 一直走在最前面 Always Ahead 40
開發-在本地端開發
• Run local Apache + PHP
– httpd.conf
• For PHP 5 + Apache HTTP Server
• 修改 %_HiPaaSDIR_% 為 Git Clone 下來的目錄
– php.ini
• allow_url_fopen = Off
• memory_limit
• post_max_size
• upload_max_filesize
• disable_functions
為了你 一直走在最前面 Always Ahead 41
部署
• 版本控管 – 編號 & 提交序號
• 自訂標籤
– latest
– stable, current, test
– prod(uction)
– http://<標籤>.<環境名稱>.hicloud.net.tw/
• 設定 prod 標籤  部署上線
為了你 一直走在最前面 Always Ahead 42
部署- 版本控管
• 編號 & 提交序號
– 保留最近五個 commit/push 版本供設定標籤
為了你 一直走在最前面 Always Ahead 43
部署-自訂標籤(1/2)
• latest
– 每次 push 自動標記
• stable, current, test
– 使用者自行設定
– 建議用法
• test
– 整合測試環境,供 Producer, Third Party 整合測試用
• current
– 準現行環境。可供線上版本更新前,最後測試用。
• stable
– 穩定環境。可供線上版本更新前,標示前次 production 環境
用。版本更新後若有異常可以此版本 rollback。
為了你 一直走在最前面 Always Ahead 44
部署-自訂標籤(2/2)
• prod(uction)
– 使用者自行設定
– 上線環境,終端用戶接觸環境
• http://<標籤>.<環境名稱>. hicloud.net.tw/
– http://latest.tsd99999.hicloud.net.tw /
– http://test.tsd99999.hicloud.net.tw /
– http://current.tsd99999.hicloud.net.tw /
– http://stable.tsd99999.hicloud.net.tw /
– http://tsd99999.hipaas.hinet.net/
• 移除標籤  導向至hicloud首頁
為了你 一直走在最前面 Always Ahead 45
部署-環境標籤Demo
• 目前標籤設定
為了你 一直走在最前面 Always Ahead 46
部署-環境標籤Demo(1/2)
• phpinfo.php
為了你 一直走在最前面 Always Ahead 47
部署-環境標籤Demo(2/3)
• syslog.php @ latest
為了你 一直走在最前面 Always Ahead 48
部署-環境標籤Demo(3/3)
• syslog.php @ test
為了你 一直走在最前面 Always Ahead 49
環境管理(1/3)
• 觀看效能狀況 – 環境整體環境
為了你 一直走在最前面 Always Ahead 50
環境管理(2/3)
• 觀看效能狀況
• 伺服器日誌 – 環境整體環境
為了你 一直走在最前面 Always Ahead 51
環境管理(3/3)
• 觀看效能狀況
• 伺服器日誌
• 應用服務日誌 – 環境應用服務
為了你 一直走在最前面 Always Ahead 52
資料庫管理-phpMyAdmin
• phpMyAdmin
– 3.5.7
為了你 一直走在最前面 Always Ahead 53
資料庫管理-大資料匯入(1/2)
• 大資料匯入/輸入(> 50MB)
– FTP upload
• 每次產生 one time password 顯示在網頁上
• one time password 五分鐘內有效
• 只能上傳,無法下載、無法刪除、無法更名
• 上傳的檔案會在48小時後移除
– phpMyAdmin 會做 pre-processing
• 可能運行長時間仍無法正常匯入
• 如果無法正常輸入,請連繫我們手動匯入
為了你 一直走在最前面 Always Ahead 54
資料庫管理-大資料匯入(2/2)
為了你 一直走在最前面 Always Ahead 55
資料庫管理-主機監控
• 效能狀況
• 日誌查詢
為了你 一直走在最前面 Always Ahead 56
Any Questions?
Please visit http://telsoft.hinet.net/
為了你 一直走在最前面 Always Ahead 57
Appendix
為了你 一直走在最前面 Always Ahead 58
MVC – Model-View-Controller
• Model
– What your application is (but not how it is
displayed)
• View
– Your controller’s minions
• Controller
– The Heart of your application, determine how
HTTP requests should be handled
– How your Model is presented to the user (UI
logic)
為了你 一直走在最前面 Always Ahead 59
PHP Framework Benchmark
by PhalconPHP

More Related Content

Similar to hicloud PaaS 雲創平台 PHP 運行環境介紹

Git 使用介绍
Git 使用介绍Git 使用介绍
Git 使用介绍medcl
 
推薦系統實作
推薦系統實作推薦系統實作
推薦系統實作FEG
 
Learn git
Learn gitLearn git
Learn git甘 李
 
Visual Studio Code 快速上手指南
Visual Studio Code 快速上手指南Visual Studio Code 快速上手指南
Visual Studio Code 快速上手指南Shengyou Fan
 
Git 入門與實作
Git 入門與實作Git 入門與實作
Git 入門與實作奕浦 郭
 
開發工具與環境建置
開發工具與環境建置開發工具與環境建置
開發工具與環境建置Shengyou Fan
 
Learning to Use Git | WeiYuan
Learning to Use Git | WeiYuanLearning to Use Git | WeiYuan
Learning to Use Git | WeiYuanWei-Yuan Chang
 
Git 版本控制系統 -- 從微觀到宏觀
Git 版本控制系統 -- 從微觀到宏觀Git 版本控制系統 -- 從微觀到宏觀
Git 版本控制系統 -- 從微觀到宏觀Wen-Tien Chang
 
Mercurial簡介與教學
Mercurial簡介與教學Mercurial簡介與教學
Mercurial簡介與教學芳本 林
 
Git 超簡單學習懶人包(軟體程式版本控管系統)
Git 超簡單學習懶人包(軟體程式版本控管系統)Git 超簡單學習懶人包(軟體程式版本控管系統)
Git 超簡單學習懶人包(軟體程式版本控管系統)flylon
 
Android 程式設計(4)
Android 程式設計(4)Android 程式設計(4)
Android 程式設計(4)Roy Wang
 
Git in a nutshell
Git in a nutshellGit in a nutshell
Git in a nutshellNelson Tai
 
Git tutorial for windows user (給 Windows user 的 Git 教學)
Git tutorial for windows user (給 Windows user 的 Git 教學)Git tutorial for windows user (給 Windows user 的 Git 教學)
Git tutorial for windows user (給 Windows user 的 Git 教學)Cloud Tu
 
Linux基础
Linux基础Linux基础
Linux基础zhuqling
 
First meetingwithgit
First meetingwithgitFirst meetingwithgit
First meetingwithgitRhythm Sun
 
Python 于 webgame 的应用
Python 于 webgame 的应用Python 于 webgame 的应用
Python 于 webgame 的应用勇浩 赖
 

Similar to hicloud PaaS 雲創平台 PHP 運行環境介紹 (20)

Git 使用介绍
Git 使用介绍Git 使用介绍
Git 使用介绍
 
推薦系統實作
推薦系統實作推薦系統實作
推薦系統實作
 
Learn git
Learn gitLearn git
Learn git
 
Visual Studio Code 快速上手指南
Visual Studio Code 快速上手指南Visual Studio Code 快速上手指南
Visual Studio Code 快速上手指南
 
Git 入門與實作
Git 入門與實作Git 入門與實作
Git 入門與實作
 
開發工具與環境建置
開發工具與環境建置開發工具與環境建置
開發工具與環境建置
 
Learning to Use Git | WeiYuan
Learning to Use Git | WeiYuanLearning to Use Git | WeiYuan
Learning to Use Git | WeiYuan
 
Git 版本控制系統 -- 從微觀到宏觀
Git 版本控制系統 -- 從微觀到宏觀Git 版本控制系統 -- 從微觀到宏觀
Git 版本控制系統 -- 從微觀到宏觀
 
LinuxGuide4F2E
LinuxGuide4F2ELinuxGuide4F2E
LinuxGuide4F2E
 
Mercurial簡介與教學
Mercurial簡介與教學Mercurial簡介與教學
Mercurial簡介與教學
 
Linux File system
Linux File systemLinux File system
Linux File system
 
Git 超簡單學習懶人包(軟體程式版本控管系統)
Git 超簡單學習懶人包(軟體程式版本控管系統)Git 超簡單學習懶人包(軟體程式版本控管系統)
Git 超簡單學習懶人包(軟體程式版本控管系統)
 
Android 程式設計(4)
Android 程式設計(4)Android 程式設計(4)
Android 程式設計(4)
 
Git in a nutshell
Git in a nutshellGit in a nutshell
Git in a nutshell
 
Git tutorial for windows user (給 Windows user 的 Git 教學)
Git tutorial for windows user (給 Windows user 的 Git 教學)Git tutorial for windows user (給 Windows user 的 Git 教學)
Git tutorial for windows user (給 Windows user 的 Git 教學)
 
Linux基础
Linux基础Linux基础
Linux基础
 
20160420 - git intro
20160420 - git intro20160420 - git intro
20160420 - git intro
 
First meetingwithgit
First meetingwithgitFirst meetingwithgit
First meetingwithgit
 
Git Tutorial
Git TutorialGit Tutorial
Git Tutorial
 
Python 于 webgame 的应用
Python 于 webgame 的应用Python 于 webgame 的应用
Python 于 webgame 的应用
 

hicloud PaaS 雲創平台 PHP 運行環境介紹

  • 1. 為了你 一直走在最前面 Always Ahead 1 中華雲創平台 PHP 開發環境介紹
  • 2. 為了你 一直走在最前面 Always Ahead 2 Outline • PHP 開發環境介紹 – 初始 • 申裝、初始原始碼下載、… – 開發 • 注意事項、上傳、本地端開發… – 部署 • 整合測試、原始碼版本管理、版本選定、… – 環境管理 • 系統資訊、系統記錄、資源監控、… • 資料庫管理
  • 3. 為了你 一直走在最前面 Always Ahead 3 • 申租環境 – 首頁申租 – 同意條款 – 選擇PHP環境 – PHP環境資料設定 • 選定範本(Template) – Empty template » Directory Structure » Redirect – MVC Framework » CodeIgniter 初始-申租(1/4)
  • 4. 為了你 一直走在最前面 Always Ahead 4 初始-申租(2/4) • 申租環境 – 首頁申租 – 同意條款 – 選擇PHP環境 – PHP環境資料設定 • 選定範本(Template) – Empty template » Directory Structure » Redirect – MVC Framework » CodeIgniter
  • 5. 為了你 一直走在最前面 Always Ahead 5 初始-申租(3/4) • 申租環境 – 首頁申租 – 同意條款 – 選擇PHP環境 – PHP環境資料設定 • 選定範本(Template) – Empty template » Directory Structure » Redirect – MVC Framework » CodeIgniter
  • 6. 為了你 一直走在最前面 Always Ahead 6 初始-申租(4/4) • 申租環境 – 首頁申租 – 同意條款 – 選擇PHP環境 – PHP環境資料設定 • 選定範本(Template) – Empty template » Directory Structure » Redirect – MVC Framework » CodeIgniter
  • 7. 為了你 一直走在最前面 Always Ahead 7 • 申租環境 • 權限管理 – 管理 – 唯讀 – 確認權限 初始-權限管理(1/4)
  • 8. 為了你 一直走在最前面 Always Ahead 8 • 申租環境 • 權限管理 – 管理 – 唯讀 – 確認權限 初始-權限管理(2/4)
  • 9. 為了你 一直走在最前面 Always Ahead 9 • 申租環境 • 權限管理 – 管理 – 唯讀 – 確認權限 初始-權限管理(3/4)
  • 10. 為了你 一直走在最前面 Always Ahead 10 • 申租環境 • 權限管理 – 管理 – 唯讀 – 確認權限 初始-權限管理(4/4)
  • 11. 為了你 一直走在最前面 Always Ahead 11 • 申租環境 • 帳號管理 • 初始原始碼下載 – Git Clone from GIT Repo… 初始-原始碼下載
  • 12. 為了你 一直走在最前面 Always Ahead 12 GIT • 建議環境 – Linux/Mac + git client – Windows + TortoiseGit
  • 13. 為了你 一直走在最前面 Always Ahead 13 GIT – U*ix(1/3) • 建議環境 – Linux/Mac + git client • git clone • Directory Structure • README.txt
  • 14. 為了你 一直走在最前面 Always Ahead 14 GIT – U*ix(2/3) • 建議環境 – Linux/Mac + git client • git clone • Directory Structure • README.txt
  • 15. 為了你 一直走在最前面 Always Ahead 15 GIT – U*ix(3/3) • 建議環境 – Linux/Mac + git client • git clone • Directory Structure • README.txt (請讀我)
  • 16. 為了你 一直走在最前面 Always Ahead 16 GIT - Windows(1/6) • 建議環境 – Windows + TortoiseGit • Install TortoiseGit + mSysGit
  • 17. 為了你 一直走在最前面 Always Ahead 17 GIT - Windows(2/6) • 建議環境 – Windows + TortoiseGit • Install TortoiseGit + mSysGit • Edit global .gitconfig
  • 18. 為了你 一直走在最前面 Always Ahead 18 GIT - Windows(3/6) • 建議環境 – Windows + TortoiseGit • Install TortoiseGit + mSysGit • Edit global .gitconfig • Git Clone
  • 19. 為了你 一直走在最前面 Always Ahead 19 GIT - Windows(4/6) • 建議環境 – Windows + TortoiseGit • Install TortoiseGit + mSysGit • Edit global .gitconfig • Git Clone
  • 20. 為了你 一直走在最前面 Always Ahead 20 GIT - Windows(5/6) • 建議環境 – Windows + TortoiseGit • Install TortoiseGit + mSysGit • Edit global .gitconfig • Git Clone • Directory Structure
  • 21. 為了你 一直走在最前面 Always Ahead 21 GIT - Windows(6/6) • 建議環境 – Windows + TortoiseGit • Install TortoiseGit + mSysGit • Edit global .gitconfig • Git Clone • Directory Structure • README.txt (請讀我)
  • 22. 為了你 一直走在最前面 Always Ahead 22 GIT • hicloud PaaS PHP 最常使用的指令 – commit (提交) • commit codes into LOCAL GIT – push • push codes to hicloud PaaS PHP – pull • fetch codes from hicloud PaaS PHP & merge … – clone • copy your GIT repository from hicloud PaaS PHP – log
  • 23. 為了你 一直走在最前面 Always Ahead 23 開發 • hicloud PaaS PHP directory structure • HiPaaS.inc.php – _HiPaaSDIR_ – HiPaaS::syslog() – HiPaaS::sys_get_temp_dir() • git push! – http://latest.<環境名稱>.hicloud.net.tw/ • 本地端開發
  • 24. 為了你 一直走在最前面 Always Ahead 24 開發-Directory Structure(1/2) • Git clone 下來的目錄 – /Some/Path/On/VM/_HiPaaSDIR_ • _HiPaaSDIR_/htdocs/ – Web DocumentRoot – 此目錄下的檔案可以直接被 httpd 讀取, 請小心 – 建議把 CSS/JS/Images 放在 htdocs 目錄下 – 如果要求的檔案不存在,會被導向 /index.php • MVC Framework 機制 • 請視情況處理 404 Not Found 或是其他情況 • hicloud PaaS PHP 強烈建議使用 MVC Framework
  • 25. 為了你 一直走在最前面 Always Ahead 25 開發-Directory Structure(2/2) • _HiPaaSDIR_/(其他目錄或檔案) – 這些目錄下的檔案無法直接被 httpd 讀取 • 請使用 PHP 程式讀取 – 建議放在非 htdocs 目錄下的檔案 • 敏感資料 (e.g., Database User/Password include file) • SQLite db file • PHP Libraries (libraries, classes, …) • MVC Framework files (system, application, …)
  • 26. 為了你 一直走在最前面 Always Ahead 26 開發-HiPaaS.inc.php • HiPaaS.inc.php 定義了… – _HiPaaSDIR_ • 每個用戶、環境略有不同,請用此常數視為根目錄 – HiPaaS::syslog() • 應用服務日誌使用 – HiPaaS::sys_get_temp_dir() • 取得暫存目錄使用 – …未來會依使用者回饋新增不同常數或函數
  • 27. 為了你 一直走在最前面 Always Ahead 27 開發-push to hicloud PaaS (1/9) • Git push – Windows • Edit (new) files • (Add new files) • Commit • Push
  • 28. 為了你 一直走在最前面 Always Ahead 28 開發-push to hicloud PaaS (2/9) • Git push – Windows • Edit (new) files • (Add new files) • Commit • Push
  • 29. 為了你 一直走在最前面 Always Ahead 29 開發-push to hicloud PaaS (3/9) • Git push – Windows • Edit (new) files • (Add new files) • Commit • Push
  • 30. 為了你 一直走在最前面 Always Ahead 30 開發-push to hicloud PaaS (4/9) • Git push – Windows • Edit (new) files • (Add new files) • Commit • Push
  • 31. 為了你 一直走在最前面 Always Ahead 31 開發-push to hicloud PaaS (5/9) • Git push – Windows • Edit (new) files • (Add new files) • Commit • Push
  • 32. 為了你 一直走在最前面 Always Ahead 32 開發-push to hicloud PaaS (6/9) • Git push – Windows • Edit (new) files • (Add new files) • Commit • Push
  • 33. 為了你 一直走在最前面 Always Ahead 33 開發-push to hicloud PaaS (7/9) • Git push – Linux/Mac • Edit (new) files • (Add new files)
  • 34. 為了你 一直走在最前面 Always Ahead 34 開發-push to hicloud PaaS (8/9) • Git push – Linux/Mac • Edit (new) files • (Add new files) • Commit • Push
  • 35. 為了你 一直走在最前面 Always Ahead 35 開發-push to hicloud PaaS (9/9) • Git push – Linux/Mac • Edit (new) files • (Add new files) • Commit • Push
  • 36. 為了你 一直走在最前面 Always Ahead 36 開發-pull from hicloud PaaS(1/2) • Git pull, 取得協同開發最新版程式 – Windows
  • 37. 為了你 一直走在最前面 Always Ahead 37 開發-pull from hicloud PaaS(2/2) • Git pull, 取得協同開發最新版程式 – Linux/Mac
  • 38. 為了你 一直走在最前面 Always Ahead 38 開發-Show log(1/2) • Git log – Windows
  • 39. 為了你 一直走在最前面 Always Ahead 39 開發-Show log(2/2) • Git log – Linux/Mac
  • 40. 為了你 一直走在最前面 Always Ahead 40 開發-在本地端開發 • Run local Apache + PHP – httpd.conf • For PHP 5 + Apache HTTP Server • 修改 %_HiPaaSDIR_% 為 Git Clone 下來的目錄 – php.ini • allow_url_fopen = Off • memory_limit • post_max_size • upload_max_filesize • disable_functions
  • 41. 為了你 一直走在最前面 Always Ahead 41 部署 • 版本控管 – 編號 & 提交序號 • 自訂標籤 – latest – stable, current, test – prod(uction) – http://<標籤>.<環境名稱>.hicloud.net.tw/ • 設定 prod 標籤  部署上線
  • 42. 為了你 一直走在最前面 Always Ahead 42 部署- 版本控管 • 編號 & 提交序號 – 保留最近五個 commit/push 版本供設定標籤
  • 43. 為了你 一直走在最前面 Always Ahead 43 部署-自訂標籤(1/2) • latest – 每次 push 自動標記 • stable, current, test – 使用者自行設定 – 建議用法 • test – 整合測試環境,供 Producer, Third Party 整合測試用 • current – 準現行環境。可供線上版本更新前,最後測試用。 • stable – 穩定環境。可供線上版本更新前,標示前次 production 環境 用。版本更新後若有異常可以此版本 rollback。
  • 44. 為了你 一直走在最前面 Always Ahead 44 部署-自訂標籤(2/2) • prod(uction) – 使用者自行設定 – 上線環境,終端用戶接觸環境 • http://<標籤>.<環境名稱>. hicloud.net.tw/ – http://latest.tsd99999.hicloud.net.tw / – http://test.tsd99999.hicloud.net.tw / – http://current.tsd99999.hicloud.net.tw / – http://stable.tsd99999.hicloud.net.tw / – http://tsd99999.hipaas.hinet.net/ • 移除標籤  導向至hicloud首頁
  • 45. 為了你 一直走在最前面 Always Ahead 45 部署-環境標籤Demo • 目前標籤設定
  • 46. 為了你 一直走在最前面 Always Ahead 46 部署-環境標籤Demo(1/2) • phpinfo.php
  • 47. 為了你 一直走在最前面 Always Ahead 47 部署-環境標籤Demo(2/3) • syslog.php @ latest
  • 48. 為了你 一直走在最前面 Always Ahead 48 部署-環境標籤Demo(3/3) • syslog.php @ test
  • 49. 為了你 一直走在最前面 Always Ahead 49 環境管理(1/3) • 觀看效能狀況 – 環境整體環境
  • 50. 為了你 一直走在最前面 Always Ahead 50 環境管理(2/3) • 觀看效能狀況 • 伺服器日誌 – 環境整體環境
  • 51. 為了你 一直走在最前面 Always Ahead 51 環境管理(3/3) • 觀看效能狀況 • 伺服器日誌 • 應用服務日誌 – 環境應用服務
  • 52. 為了你 一直走在最前面 Always Ahead 52 資料庫管理-phpMyAdmin • phpMyAdmin – 3.5.7
  • 53. 為了你 一直走在最前面 Always Ahead 53 資料庫管理-大資料匯入(1/2) • 大資料匯入/輸入(> 50MB) – FTP upload • 每次產生 one time password 顯示在網頁上 • one time password 五分鐘內有效 • 只能上傳,無法下載、無法刪除、無法更名 • 上傳的檔案會在48小時後移除 – phpMyAdmin 會做 pre-processing • 可能運行長時間仍無法正常匯入 • 如果無法正常輸入,請連繫我們手動匯入
  • 54. 為了你 一直走在最前面 Always Ahead 54 資料庫管理-大資料匯入(2/2)
  • 55. 為了你 一直走在最前面 Always Ahead 55 資料庫管理-主機監控 • 效能狀況 • 日誌查詢
  • 56. 為了你 一直走在最前面 Always Ahead 56 Any Questions? Please visit http://telsoft.hinet.net/
  • 58. 為了你 一直走在最前面 Always Ahead 58 MVC – Model-View-Controller • Model – What your application is (but not how it is displayed) • View – Your controller’s minions • Controller – The Heart of your application, determine how HTTP requests should be handled – How your Model is presented to the user (UI logic)
  • 59. 為了你 一直走在最前面 Always Ahead 59 PHP Framework Benchmark by PhalconPHP