Asset Host
You can define an asset host for your application. By default, the application will search the assets in the public folder (e.g. stylesheets will be loaded from public/stylesheets folder), but when an asset host is defined, then stylesheets, images, and javascripts will be loaded from that location instead.
To define an asset host, you will need to set configatron.mack.assets.hosts in your configuration file. The framework will then use that value to determine where to load the assets.
The following are all the types of value supported by the asset host configuration:
- Static host, e.g.
configatron.mack.assets.hosts = "http://www.foo.com" - Asset distribution, e.g.
configatron.mack.assets.hosts = "http://www%d.foo.com". Note on asset distribution, by default all assets will be distributed across 4 domains (in the example, it will be distributed to www0 to www3). If preferred, you can setconfigatron.mack.assets.max_distributionto some other number