-
Notifications
You must be signed in to change notification settings - Fork 3
/
apps.rb
35 lines (33 loc) · 1.34 KB
/
apps.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# -*- encoding : utf-8 -*-
##
# This file mounts each app in the Padrino project to a specified sub-uri.
# You can mount additional applications using any of these commands below:
#
# Padrino.mount("blog").to('/blog')
# Padrino.mount("blog", :app_class => "BlogApp").to('/blog')
# Padrino.mount("blog", :app_file => "path/to/blog/app.rb").to('/blog')
#
# You can also map apps to a specified host:
#
# Padrino.mount("Admin").host("admin.example.org")
# Padrino.mount("WebSite").host(/.*\.?example.org/)
# Padrino.mount("Foo").to("/foo").host("bar.example.org")
#
# Note 1: Mounted apps (by default) should be placed into the project root at '/app_name'.
# Note 2: If you use the host matching remember to respect the order of the rules.
#
# By default, this file mounts the primary app which was generated with this project.
# However, the mounted app can be modified as needed:
#
# Padrino.mount("AppName", :app_file => "path/to/file", :app_class => "BlogApp").to('/')
#
##
# Setup global project settings for your apps. These settings are inherited by every subapp. You can
# override these settings in the subapps as needed.
#
Padrino.configure_apps do
# enable :sessions
set :session_secret, '84f54694bb020d61e07e175832ac82962cf1e618439862acbcfdf9a072a9fbbd'
end
# Mounts the core application for this project
Padrino.mount("CraftCalculator").to('/')