Skip to content

Instantly share code, notes, and snippets.

View taea's full-sized avatar
🏠
Working from home

ken_c_lo / TAEKO AKATSUKA taea

🏠
Working from home
View GitHub Profile
@taea
taea / file0.txt
Created March 12, 2014 15:45
Heroku で既存の本番環境をコピーしてステージング環境を作る ref: http://qiita.com/ken_c_lo/items/32998d9dd79a15b75c14
heroku fork -a APPNAME APPNAME-stg
@taea
taea / ruby-build-git-pull.md
Created February 25, 2014 06:51
ruby-ruby-build を 直接 git pull する

brew update && brew upgrade でうまく最新のに更新されない場合にやるのヨサソウ( ˘ω˘)

$ cd ~/.rbenv
$ git pull origin master
$ cd ~/.rbenv/plugins/ruby-build
$ git pull origin master
@taea
taea / rm_pid.md
Last active January 12, 2023 14:22
postgres をちゃんと終了しないと.pidファイルが残っちゃって、Rails が起動しないもんだい

Rails 起動しようとするとこんなエラーでる

PG::ConnectionBad at /
could not connect to server: Connection refused
Is the server running on host "localhost" (::1) and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5432?
@taea
taea / gist:8592584
Created January 24, 2014 05:46
rubymotionで rakeがうまくいかない時

rake clean して compile し直す

or

bundle install --path でインストールし直す

$ brew install hub
@taea
taea / hub-pull-request.md
Last active January 2, 2016 18:59
はぶ
brew install postgresql
createuser -S #{プロジェクト名}
gem i pg
@taea
taea / gist:8129657
Last active January 1, 2016 10:09
カマス
vi `brew --prefix mysql`/my.cnf
innodb_file_format=Barracuda
brew update
brew upgrade
RUBY_CONFIGURE_OPTS="--with-readline-dir=$(brew --prefix readline) --with-openssl-dir=$(brew --prefix openssl)" rbenv install 2.1.0

mysqlの再起動

mysql探す

launchctl list | grep mysql

なんか出てくる