※同じ資料は speakerdeck にも置いてあります https://speakerdeck.com/toritori0318/chef-solokaraitamaeniwan-quan-yi-xing-sitahua-plus itamae meetup vol1で話したスライドです
![Mina 20130417](https://cdn-ak-scissors.b.st-hatena.com/image/square/eed0974881fca10fdbf6d71fc328ab757eef1328/height=288;version=1;width=512/https%3A%2F%2Fcdn.slidesharecdn.com%2Fss_thumbnails%2Fmina20130417slideshare-130417063928-phpapp01-thumbnail.jpg%3Fwidth%3D640%26height%3D640%26fit%3Dbounds)
※同じ資料は speakerdeck にも置いてあります https://speakerdeck.com/toritori0318/chef-solokaraitamaeniwan-quan-yi-xing-sitahua-plus itamae meetup vol1で話したスライドです
■ [mina] mina で capistrano の multistage みたいな奴 タイトルの通り、mina で capistrano の cap production deploy みたいな奴どうすんのと思って色々調べたら、下のような感じになるっぽい。 https://github.com/ruby/www.ruby-lang.org/blob/master/config/deploy.rb 要は production という task を用意して、そこで domain や deploy_to を上書きしてから、別途個別にタスクを用意するというやり方。ちょっとだるい感はあるけど、これくらいなら自分で手書きでもいいかもね。
# set: キーに対して値を設定する (Mina の設定用) set :user, 'username' p user # => "username" (set したデータはメソッドとして呼び出せる) # desc: task の前に書いてタスクに説明を付ける desc "タスクの説明" # task: タスクを定義する task :mytask => [:subtask] do # subtask を前提タスクとして mytask を定義 # queue: リモートで "touch hoge.txt" を実行するコマンドを実行キューに追加 queue 'touch hoge.txt' # queue!: --verbose モードでコマンドが出力される以外は queue と同じ queue! 'rm -f hoge.txt' # invoke: タスク another を実行 invo
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く