From 2f6780969318c08c7a0a0e8e52a7dad33ff53786 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Thu, 22 Jan 2015 20:58:09 +0100 Subject: Bootstrap Play Scala project --- conf/application.conf | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++ conf/routes | 9 ++++++++ 2 files changed, 71 insertions(+) create mode 100644 conf/application.conf create mode 100644 conf/routes (limited to 'conf') diff --git a/conf/application.conf b/conf/application.conf new file mode 100644 index 0000000..1db3b0e --- /dev/null +++ b/conf/application.conf @@ -0,0 +1,62 @@ +# This is the main configuration file for the application. +# ~~~~~ + +# Secret key +# ~~~~~ +# The secret key is used to secure cryptographics functions. +# +# This must be changed for production, but we recommend not changing it in this file. +# +# See http://www.playframework.com/documentation/latest/ApplicationSecret for more details. +application.secret="e@_?aqO:dGjH9LfXK?T;V`Pb9K?S22igdQVvgN?b?vnb[UkXbORmWO`O9>mWabI5" + +# The application languages +# ~~~~~ +application.langs="en" + +# Global object class +# ~~~~~ +# Define the Global object class for this application. +# Default to Global in the root package. +# application.global=Global + +# Router +# ~~~~~ +# Define the Router object to use for this application. +# This router will be looked up first when the application is starting up, +# so make sure this is the entry point. +# Furthermore, it's assumed your route file is named properly. +# So for an application router like `my.application.Router`, +# you may need to define a router file `conf/my.application.routes`. +# Default to Routes in the root package (and conf/routes) +# application.router=my.application.Routes + +# Database configuration +# ~~~~~ +# You can declare as many datasources as you want. +# By convention, the default datasource is named `default` +# +# db.default.driver=org.h2.Driver +# db.default.url="jdbc:h2:mem:play" +# db.default.user=sa +# db.default.password="" + +# Evolutions +# ~~~~~ +# You can disable evolutions if needed +# evolutionplugin=disabled + +# Logger +# ~~~~~ +# You can also configure logback (http://logback.qos.ch/), +# by providing an application-logger.xml file in the conf directory. + +# Root logger: +logger.root=ERROR + +# Logger used by the framework: +logger.play=INFO + +# Logger provided to your application: +logger.application=DEBUG + diff --git a/conf/routes b/conf/routes new file mode 100644 index 0000000..20fd042 --- /dev/null +++ b/conf/routes @@ -0,0 +1,9 @@ +# Routes +# This file defines all application routes (Higher priority routes first) +# ~~~~ + +# Home page +GET / controllers.Application.index + +# Map static resources from the /public folder to the /assets URL path +GET /assets/*file controllers.Assets.at(path="/public", file) -- cgit v1.2.3