- Ubuntu 12.04 64bit server with 16GB RAM
This file contains 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
#!/bin/sh | |
# reset stuff | |
sudo rm -r .blobs | |
rm -r blobs | |
rm -r blobs_import | |
git checkout -- config/blobs.yml | |
git checkout -- config/final.yml | |
rm config/private.yml |
y - 処理中の hunk を索引に追加します。
n - 処理中の hunk を索引に追加しません。
q - 終了します。処理中の hunk およびそれ以降の hunk は索引に追加しません。
a - 処理中の hunk およびそれ以降のファイル中の hunk を索引に追加します。
d - 処理中の hunk およびそれ以降のファイル中の hunk を索引に追加しません。
g - 処理対象となる(別の) hunk を選択します。
/ - 入力した正規表現にマッチする hunk を検索します。
j - 処理中の hunk を保留にし、次の保留されている hunk を表示します。
J - 処理中の hunk を保留にし、次の hunk を表示します。
This file contains 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
# http://d.hatena.ne.jp/haru-s/20110405/1302006637 に答えがそのままあるが、一応メモ | |
# github fork 追従 で見つけた | |
$ git remote | |
origin | |
# 本家のリモートリポジトリの短縮名を登録する. | |
$ git remote add github git://github.com/liquidz/misaki.git | |
# 本家の更新をローカルで反映させる. |
This file contains 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
set :rails_env, :production | |
set :unicorn_binary, "/usr/bin/unicorn" | |
set :unicorn_config, "#{current_path}/config/unicorn.rb" | |
set :unicorn_pid, "#{current_path}/tmp/pids/unicorn.pid" | |
namespace :deploy do | |
task :start, :roles => :app, :except => { :no_release => true } do | |
run "cd #{current_path} && #{try_sudo} #{unicorn_binary} -c #{unicorn_config} -E #{rails_env} -D" | |
end | |
task :stop, :roles => :app, :except => { :no_release => true } do |
NewerOlder