Sha256: 88b2c59098d9c07ef3c0e2f9207d144359d0e7bccce70522ca405efee144fc9c
Contents?: true
Size: 1.02 KB
Versions: 1
Compression:
Stored size: 1.02 KB
Contents
=begin This file mounts each application within the Padrino project to a specific path. You can mount additional applications using any of these 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 map also apps to a specified host: Padrino.mount_core("Blog").host("blog.example.org") Padrino.mount("Admin").host("admin.example.org") Padrino.mount("WebSite").host(/.*\.?example.org/) Padrino.mount("Foo").to("/foo").host("bar.example.org") Note 1: that mounted apps by default should be placed into 'apps/app_name'. Note 2: if you use host match remember that it's important respect order. By default, this file simply mounts the core app which was generated with this project. However, the mounted core can be modified as needed: Padrino.mount_core(:app_file => "/path/to/file", :app_class => "Blog") =end # Mounts the core application for this project Padrino.mount_core("<%= @class_name %>")
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
padrino-gen-0.9.10 | lib/padrino-gen/generators/project/config/apps.rb.tt |