Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Tech Night Vol.2 - Fabric
Search
Taakshi Aoki
January 27, 2015
Technology
84
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Tech Night Vol.2 - Fabric
実際使ったFabfile
https://drive.google.com/folderview?id=0B1CWy69XRcDFUXhjM0hhdUNYT2M&usp=sharing
Taakshi Aoki
January 27, 2015
More Decks by Taakshi Aoki
See All by Taakshi Aoki
Perlで自動文書分類
elk1997
0
180
Windows使いのデザイナーにVagrant+Gitの開発環境構築した話
elk1997
0
640
AWSじゃなくてさくらのクラウドを使ってる話
elk1997
0
2.4k
AWSの基礎
elk1997
1
120
ベイエリアIT事情@第10回関西PHP勉強会
elk1997
0
120
Other Decks in Technology
See All in Technology
キヨさん、67歳。AIコーディングエージェントに挑む
happysamurai294
0
110
AIで選択肢が広がった組織設計の理想と現実
konifar
15
6.5k
Draft AIエージェントの トークン消費を最小化する 8つの原則
kinopeee
6
1.8k
CSS2026:OWS研究会・招待講演「世界観を、実装する」
atsush1_sada
2
340
DevelopersIO2026 -バックアップは“消されないこと”が9割-
yoshida0129
0
420
Autonomous AI Lakehouse - Live AI Hubから始めるセキュアなAIデータ活用 -
oracle4engineer
PRO
2
160
dbt Semantic Layerで進めるenechainのデータ民主化
akizhou
1
280
AI時代の開発はウォーターフォールに回帰する? / development-with-ai-back-to-wf
okamototakuyasr2
0
130
「社外イベント=意識高い」の壁を壊せ!元々無関心だった僕らが部内で社外イベントを民主化して15人を連れ出すまで
say_no_w
0
160
クラウドサインを止めずに Nuxt へ 次の10年のために先に決めたこと
bengo4com
1
170
Devin プロモコードの受け取りと適用(2026.10.27)
kinopeee
1
630
Agent 活用環境の構築・運用のための AWS サービスのご紹介/agentcore-for-building-and-operating-agents
ren8k
1
210
Featured
See All Featured
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.5k
Large-scale JavaScript Application Architecture
addyosmani
516
110k
Reality Check: Gamification 10 Years Later
codingconduct
0
2.4k
Intergalactic Javascript Robots from Outer Space
tanoku
273
28k
Visualization
eitanlees
153
17k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
530
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
230
23k
Design in an AI World
tapps
1
370
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.6k
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
2
490
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
Building Adaptive Systems
keathley
44
3.3k
Transcript
Fabric
Fabricとは 1
• サーバー構成管理ツール ▪Fabricとは 二つの使い方ができる • デプロイツール
サーバー構成管理ツールとしての Fabric 2
▪サーバー構成管理ツールとは サーバーをコマンド連発でなくコードで管理できるツール コマンドを一つ実行すればサーバーができあがる # fab setup
▪サーバー構成管理ツールとは # yum update # yum install h7pd
# vim /etc/h7pd/conf/h7pd.conf # /etc/init.d/h7pd restart # chkconfig h7pd on # cd /var/www/ ・ ・ ・ # ls fabfile.py fab setup fabfileに記述しておけば 手動でセットアップ
▪他の構成管理ツール Fabric Ansible Chef 言語 Python Python Ruby
特徴 Pythonで設定を直 書き Playbookいうファル にYAMLで設定を 書いていく レシピというファイ ルにDSLで設定を 書いていく サーバー側のイン ストール なし なし 要Ruby 情報の多さ × × ◦ 学習コスト ◦ △ ×
▪Fabricのインストール # pip install fabric インストール
#vim fabfile.py 設定ファイルを記述
▪Fabricの基本的な記述 from fabric.api import * env.hosts =
['192.168.33.20'] env.user = 'vagrant' env.password = 'vagrant’ def demo(): run("ls -‐la”) fabfile.pyを記述 #fab demo 実行 このファイルを育てる
▪最低限のメソッド 例) run(“ls -‐la”) サーバー側でコマンドを実行する 例) sudo(“ls
-‐la”) サーバー側でrootになりコマンドを実行する 例) put(“hoge.txt”, “/tmp”) ローカルにあるファイルをサーバーに送る run sudo put local 例) local(“pwd”) ローカルで実行
▪デモ (demo)
デプロイツールとしてのFabric 3
▪デプロイツールとは コマンド一つでアプリケーションを配置 コマンド一つで複数台サーバーにrsync # fab deploy:dev
# fab deploy:prod
▪デプロイツールとは アップロード デプロイのログを残す バックアップ キャッシュクリア DBスキーマ変更 FTP, SCP, rsync,
Gitでのデプロイを拡張する ツール
▪デプロイツールとは (demo)
▪まとめ • Webサーバーや言語の選択肢が増えた。(構成の多様化) • mod_phpで動けばOKという時代は終わる。 • サーバー自体を共有したり再構築する時代から、サーバー 成を書いたファイルだけを共有する時代へ
▪参考URL • 実際動かしたFabfile h7ps://drive.google.com/folderview? id=0B1CWy69XRcDFUXhjM0hhdUNYT2M&usp=sharing