Skip to content

Instantly share code, notes, and snippets.

@shu0115
shu0115 / circle.yml
Created June 25, 2014 03:18
CircleCI on Heroku - 簡易自動デプロイ circle.ymlサンプル ref: http://qiita.com/shu_0115/items/496f3c46b09bbbba4d02
deployment:
staging:
branch: staging
commands:
- curl https://slack.com/api/chat.postMessage -X POST -d 'channel=#heroku' -d 'text=【START】ステージング環境へのデプロイを開始しました。' -d 'username=circle_ci' -d 'token=xoxp-xxxxxxxxxx'
- git push git@heroku.com:MY-APP-NAME.git $CIRCLE_SHA1:refs/heads/master
- heroku run rake db:migrate --app MY-APP-NAME
- curl https://slack.com/api/chat.postMessage -X POST -d 'channel=#heroku' -d 'text=【END】ステージング環境へのデプロイが完了しました。' -d 'username=circle_ci' -d 'token=xoxp-xxxxxxxxxx'
@shu0115
shu0115 / file0.txt
Created May 21, 2014 12:32
RubyMotionでUndefined symbols for architecture i386:エラーが出たら ref: http://qiita.com/shu_0115/items/3ed4e185549eb962e5fe
rake clean:all
@shu0115
shu0115 / file0.txt
Created April 9, 2014 05:21
Rails 4.0.4 => Rails 4.1.0アップデート ref: http://qiita.com/shu_0115/items/42ddcf6a08f6dca32542
gem 'rails', '4.1.0'
rm -rf /usr/local/lib/libssl.0.9.8.dylib
brew update
heroku pg:info
brew update
----------
First, rewinding head to replay your work on top of it...
Fast-forwarded master to e126ec926b38ccfcc7c46d3ba32b85afd1ba63d2.
Current branch master is up to date.
Updated Homebrew from f47755f3 to e126ec92.
----------
==> Deleted Formulae
aimage cmucl darner jscoverage lmutil mlxcc nlopt
@shu0115
shu0115 / file0.txt
Created December 9, 2013 05:45
RailsAdminセットアップ on Rails4 and Heroku ref: http://qiita.com/shu_0115/items/a0af5bc8dc6ff004544a
ruby -v
----------
ruby 2.0.0p353 (2013-11-22 revision 43784) [x86_64-darwin12.5.0]
----------
gem 'angularjs-rails'
@shu0115
shu0115 / application.rb
Created December 4, 2013 05:13
Rails 4.0.2 [deprecated] I18n.enforce_available_locales〜 ref: http://qiita.com/shu_0115/items/1cf6220758a9c64c7adf
I18n.enforce_available_locales = true