mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-03 03:55:58 +01:00
Fix bootstrap problem on Tomcat.
This commit is contained in:
@@ -17,15 +17,9 @@ class ScalatraBootstrap extends LifeCycle {
|
|||||||
context.mount(new IssuesController, "/*")
|
context.mount(new IssuesController, "/*")
|
||||||
context.mount(new SettingsController, "/*")
|
context.mount(new SettingsController, "/*")
|
||||||
|
|
||||||
context.addListener(new ServletContextListener(){
|
val dir = new java.io.File(_root_.util.Directory.GitBucketHome)
|
||||||
def contextInitialized(e: ServletContextEvent): Unit = {
|
if(!dir.exists){
|
||||||
val dir = new java.io.File(_root_.util.Directory.GitBucketHome)
|
dir.mkdirs()
|
||||||
if(!dir.exists){
|
}
|
||||||
dir.mkdirs()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
def contextDestroyed(e: ServletContextEvent): Unit = {}
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user