Comments (5)
Currently you need to have directories for separating your different kind of assets inside the assets_prefix
directories. So, I would suggest moving your assets/app.css
file to assets/stylesheets/app.css
instead and then just run the rake task.
Check https://github.com/kalasjocke/sinatra-asset-pipeline/blob/master/lib/sinatra/asset_pipeline.rb#L22 for implementation details.
However, after giving it some thought I do think we should change the behavior so placing assets inside the root directory is okay, thanks for noticing!
from sinatra-asset-pipeline.
Ahh my bad, thank you so much for the help. I see that this does indeed fix my issue. I'll let you close the ticket in case you want to leave it open for the root directory issue.
from sinatra-asset-pipeline.
I thought a bit on the issue, and I do believe that we still should separate the different asset types by using different subdirectories. Perhaps I add support just for having one directory in the future, but for now I think an updated README is sufficient.
from sinatra-asset-pipeline.
Hi, it seems that I have the a similar issue, on local I can precompile the assets but when I try to deploy into heroku it appear this error
Running: rake assets:precompile
fatal: Not a git repository (or any of the parent directories): .git
Asset precompilation completed (0.96s)
I read about on StackOverflow and the solution proposed was this
heroku labs:enable user-env-compile
Anyway still dont work, any Idea?
from sinatra-asset-pipeline.
@3zcurdia Strange. I have an app on Heroku that runs this gem and it precompiles just fine. I think it must be something with the rest of your setup, or, at least thats my thought. Good luck!
from sinatra-asset-pipeline.
Related Issues (20)
- Opal issues. HOT 4
- No minification in staging environment HOT 4
- Assets aren't precompiled when running precompile task or deploying to Heroku HOT 4
- Asset folders not found if app is mounted in a different directory HOT 3
- In development and test, store_location is polluted with asset paths, instead of last REST route HOT 4
- Can't make the link between precompiled' assets HOT 4
- Usage with classic Sinatra style HOT 3
- Documenation Enhancement Regarding assets_protocol HOT 2
- Why assets_host works on production environment only? HOT 2
- Support for precompiling relative URL root HOT 3
- Sprockets 3.x support HOT 16
- Unable to get assets to serve in production HOT 1
- Using absolute path in assets_prefix array HOT 1
- Basic readme config doesn't generate any resources HOT 8
- Assets not loaded HOT 2
- Testing with Ruby 2.4, Sinatra 2.0 beta2, Rake, Sprockets gems also were updated HOT 4
- Assets Doesn't load when upgraded from Ruby 1.9.3 to Ruby 2.4.3 HOT 1
- NameError: uninitialized constant Sinatra::Sprockets::Manifest when precompiling assets HOT 1
- Asset pipeline does not support assets_paths to third party assets (from gems)
- Investigate/Update for Sprockets 4 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sinatra-asset-pipeline.