Skip to content

Instantly share code, notes, and snippets.

@yusugomori
Created April 6, 2012 08:29
Show Gist options
  • Save yusugomori/2318167 to your computer and use it in GitHub Desktop.
Save yusugomori/2318167 to your computer and use it in GitHub Desktop.
config/application.coffee
#
# 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
@edubkendo
Copy link

"エラーの原因になったりするので、コメントアウト"

Rough Translation:
Commented out because it caused an error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment