Skip to content

Commit

Permalink
Fix serving static content from /public
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanstout committed Sep 4, 2015
1 parent 04f00bb commit ea2d0c4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## 0.9.6
## Added
- @merongivian was kind enough to add Spanish traslations to the docs: (http://docs.voltframework.com/es/index.html)

## 0.9.5
### Breaking Changes
- previously, we mounted the asset folders in components at /assets, and we also mounted the /app folder (and any gem's app folders') at /assets. This allowed you to usually access what you wanted at /assets, but resulted in conflicts. To ensure better component isolation, we now only mount the ```app``` folders. To make things clear, instead of sprockets being mounted at /assets, it is now mounted at /app. So the url for something in /app/main/assets/css/something.css can be accessed at (you guessed it) /app/main/assets/css/something.css
Expand Down
2 changes: 1 addition & 1 deletion lib/volt/server/middleware/default_middleware_stack.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def self.postboot_setup(volt_app, rack_app)

# serve assets from public
rack_app.use Rack::Static,
urls: ['/'],
urls: [''],
root: 'public',
index: 'index.html',
header_rules: [
Expand Down
2 changes: 1 addition & 1 deletion lib/volt/server/template_handlers/view_processor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def app_reference
end

def cache_key
@cache_key ||= "#{self.class.name}:0.1".freeze
@cache_key ||= "#{self.class.name}:0.2".freeze
end

# def evaluate(context, locals, &block)
Expand Down

0 comments on commit ea2d0c4

Please sign in to comment.