- 社群:源來適你
- 活動:《JetBrains IDE 微醺夜 - IDE 操作技巧分享》
- 日期:22th April 20:00
- 地點:線上 Google Meet (無錄影)
- 活動貼文: https://www.facebook.com/share/14vC5d14hDD/?mibextid=wwXIfr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package chapter15 | |
fun main() { | |
Game.play() | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 啟動 Docker Image,並把當前目錄掛載到 Docker Image 裡 | |
docker run -it -v $PWD:/src albertcht/swoole:latest | |
# 檢查開發環境是否正確 | |
php -v | |
php --ri swoole | |
# 進入 examples 目錄 | |
cd /src |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 取得 Docker image | |
docker pull albertcht/swoole:latest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 將課程範例檔從 GitHub Clone 回來 | |
git clone [email protected]:albertcht/swoole-course-examples.git | |
// 進入工作目錄 | |
cd swoole-course-examples |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 啟動 Docker Image,並把當前目錄掛載到 Docker Image 裡 | |
docker run -it -v $PWD:/src phpbrew/phpbrew:php7.3-minimum-zts | |
# 以下指令請在 Docker Image 裡執行 | |
# 使用 PHPBrew 切換到 PHP 7.3 | |
phpbrew use 7.3 | |
# 檢查開發環境是否正確 | |
php -v | |
php-config |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker pull phpbrew/phpbrew:php7.3-minimum-zts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone [email protected]:php/php-src.git | |
cd php-src | |
git checkout php-7.3.3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zplug load |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ! zplug check --verbose; then | |
printf "Install? [y/N]: " | |
if read -q; then | |
echo; zplug install | |
fi | |
fi |
NewerOlder