2014-04-20から1日間の記事一覧

Rakefileで快適コンパイル生活

コンパイルしたいときはたった四文字打つだけ。 $ rake Rubyをよく使うのでC言語のコンパイル処理をRakefileに書いた。 require 'rake/clean' CLEAN.include("**/*.o") CLOBBER.include("*.out") CC = "gcc" GFLAGS = "-g -Wall" OPT = "-O3" INCDIR = "lib"…

MacBookAir'11 OSX 10.9 Mavericks でRailsアプリケーションサーバー構築

1. nginxはhomebrewでインストール。 $ brew install nginx 設定は /usr/local/etc/nginx/nginx.conf に記述する。Mac + unicorn + nginx + Rails - Giworldを参考した。 worker_processes 2; events { worker_connections 1024; } http { include mime.type…

ローカルで作ったリポジトリをGithubにpushする方法

以下のようにローカルのファイルをgitで管理し始めて、GitHubにpushしたくなった時。 $ git init $ git add . $ git commit -m 'initial commit' user名を #{user_name} 、repository名を #{repository_name} とすると、この状態でremote add すると登録はし…