Skip to content

Instantly share code, notes, and snippets.

@shu0115
Created March 13, 2013 11:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shu0115/5151232 to your computer and use it in GitHub Desktop.
Save shu0115/5151232 to your computer and use it in GitHub Desktop.
Fulcrum + Herokuセットアップ ref: http://qiita.com/items/17156cba40739ad78ab1
git clone git://github.com/malclocke/fulcrum.git
cd fulcrum
bundle install
heroku addons:add sendgrid:starter
git push heroku master
heroku run rake db:setup
http_basic_authenticate_with name: "test-fulcrum", password: ENV['BASIC_AUTHENTICATE_PASS'] unless Rails.env.development?
heroku config:set BASIC_AUTHENTICATE_PASS=password
bundle exec rake fulcrum:setup db:setup
rails server
// set CSS transition event type
if ( $.support.transition ) {
transitionEnd = "TransitionEnd"
// if ( $.browser.webkit ) {
transitionEnd = "webkitTransitionEnd"
// } else if ( $.browser.mozilla ) {
// transitionEnd = "transitionend"
// } else if ( $.browser.opera ) {
// transitionEnd = "oTransitionEnd"
// }
}
if (options.trigger != 'manual') {
// binder = options.live ? 'live' : 'bind'
binder = 'bind' // ★↑コメントアウトしこの行を追加
eventIn = options.trigger == 'hover' ? 'mouseenter' : 'focus'
eventOut = options.trigger == 'hover' ? 'mouseleave' : 'blur'
this[binder](eventIn, enter)[binder](eventOut, leave)
}
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
config.force_ssl = true
heroku create test-fulcrum
heroku config:set APP_HOST=test-fulcrum.herokuapp.com
heroku config:set MAILER_SENDER=noreply@example.org
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment