Created
March 13, 2013 11:24
-
-
Save shu0115/5151232 to your computer and use it in GitHub Desktop.
Fulcrum + Herokuセットアップ ref: http://qiita.com/items/17156cba40739ad78ab1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone git://github.com/malclocke/fulcrum.git | |
cd fulcrum |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bundle install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
heroku addons:add sendgrid:starter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git push heroku master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
heroku run rake db:setup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
heroku open |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http_basic_authenticate_with name: "test-fulcrum", password: ENV['BASIC_AUTHENTICATE_PASS'] unless Rails.env.development? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
heroku config:set BASIC_AUTHENTICATE_PASS=password |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bundle exec rake fulcrum:setup db:setup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rails server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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" | |
// } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. | |
config.force_ssl = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
heroku create test-fulcrum |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
heroku config:set APP_HOST=test-fulcrum.herokuapp.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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