Skip to content

Instantly share code, notes, and snippets.

@ryanoneill
Created April 9, 2012 04:07
Show Gist options
  • Save ryanoneill/2341305 to your computer and use it in GitHub Desktop.
Save ryanoneill/2341305 to your computer and use it in GitHub Desktop.
Very Simple Boot file for Lift on Heroku
package bootstrap
package liftweb
import net.liftweb.http.LiftRules
import net.liftweb.sitemap.{SiteMap,Menu}
class Boot {
def boot {
LiftRules.addToPackages("code")
LiftRules.setSiteMap(SiteMap(Menu("Home") / "index"))
LiftRules.enableContainerSessions = false
LiftRules.statelessReqTest.append { case _ => true }
LiftRules.early.append(_.setCharacterEncoding("UTF-8"))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment