Created
April 6, 2012 08:29
-
-
Save yusugomori/2318167 to your computer and use it in GitHub Desktop.
config/application.coffee
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
# | |
# config/application.coffee | |
# | |
everyauth = require "everyauth" | |
class App extends Tower.Application | |
@configure -> | |
@use "favicon", Tower.publicPath + "/favicon.png" | |
@use "static", Tower.publicPath, maxAge: Tower.publicCacheDuration | |
@use "profiler" if Tower.env != "production" | |
@use "logger" | |
@use "query" | |
@use "cookieParser", Tower.config.session.key | |
@use "session", | |
secret: Tower.config.session.secret, | |
# cookie: {domain: Tower.config.session.cookie.domain} # エラーの原因になったりするので、コメントアウト | |
@use "bodyParser" | |
@use "csrf" | |
@use "methodOverride", "_method" | |
@use Tower.Middleware.Agent | |
@use Tower.Middleware.Location | |
#if Tower.httpCredentials && Tower.branch != "development" | |
# @use "basicAuth", Tower.httpCredentials.username, Tower.httpCredentials.password | |
@use everyauth.middleware() | |
@use Tower.Middleware.Router | |
module.exports = global.App = new App |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
"エラーの原因になったりするので、コメントアウト"
Rough Translation:
Commented out because it caused an error.