Skip to content

Instantly share code, notes, and snippets.

@halsk
Created February 25, 2013 16:14
Show Gist options
  • Save halsk/5030910 to your computer and use it in GitHub Desktop.
Save halsk/5030910 to your computer and use it in GitHub Desktop.
Spending.jp クローンサイトの立ち上げ手順(古いです) ref: http://qiita.com/items/38c186efbd272ef59121
% git clone git@github.com:{ACCOUNT_NAME}/{ACCOUNT_NAME}.github.com.git
Cloning into '{ACCOUNT_NAME}.github.com'...
remote: Counting objects: 895, done.
remote: Compressing objects: 100% (366/366), done.
remote: Total 895 (delta 500), reused 880 (delta 486)
Receiving objects: 100% (895/895), 1.02 MiB | 368 KiB/s, done.
Resolving deltas: 100% (500/500), done.
% git checkout -b tmp # 作業用のブランチに移動
% git branch -d master #ローカルのマスターブランチを削除
% git branch -b master non-openspending # non-openspending タグの内容で master ブランチを作成
% git push -f origin master # 強制的にリモートの master ブランチを上書き
% cd {ACCOUNT_NAME}.github.com
% rm -f CNAME
% git commit -m "removed CNAME"
% git push origin master
% rbenv local 1.9.3-p194 #rbenv でのRubyバージョン指定
% gem install bundler #bundler をインストール
Fetching: bundler-1.3.0.gem (100%)
Successfully installed bundler-1.3.0
1 gem installed
Installing ri documentation for bundler-1.3.0...
Installing RDoc documentation for bundler-1.3.0...
% bundle install --path vendor/bundler # vendor/bundler に必要な gem をインストール
Fetching gem metadata from https://rubygems.org/........
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Installing RedCloth (4.2.9) with native extensions
Installing fast-stemmer (1.0.2) with native extensions
Installing classifier (1.3.3)
Installing directory_watcher (1.4.1)
Installing kramdown (0.13.8)
Installing liquid (2.4.1)
Installing syntax (1.0.0)
Installing maruku (0.6.0)
Installing posix-spawn (0.3.6) with native extensions
Installing yajl-ruby (1.1.0) with native extensions
Installing pygments.rb (0.3.7)
Installing jekyll (0.12.0)
Installing rdiscount (1.6.8) with native extensions
Installing redcarpet (2.1.1) with native extensions
Using bundler (1.2.4)
% bundle exec rake preview
jekyll --server --auto
Configuration from /Users/hal/Documents/workspace/orezeni.github.com/_config.yml
Auto-regenerating enabled: . -> ./_site
[2013-02-25 17:41:37] regeneration: 1733 files changed
[2013-02-25 17:41:38] INFO WEBrick 1.3.1
[2013-02-25 17:41:38] INFO ruby 1.9.3 (2012-04-20) [x86_64-darwin12.2.1]
[2013-02-25 17:41:38] INFO WEBrick::HTTPServer#start: pid=99942 port=4000
% vi Rakefile
(12行目を変更)
12 >.sh "git push -f git@github.com:{YOUR_ACCOUNT}/{YOUR_ACCOUNT}.github.com.git master"
CNAME {SUBDOMAIN} {ACCOUNT_NAME}.github.com.
% echo "{SUBDOMAIN}.{DOMAIN_NAME}" > CNAME
% git add CNAME
% git commit -m "changed CNAME"
% git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment