Git Product home page Git Product logo

Comments (5)

kalasjocke avatar kalasjocke commented on September 13, 2024

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.

incorvia avatar incorvia commented on September 13, 2024

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.

kalasjocke avatar kalasjocke commented on September 13, 2024

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.

3zcurdia avatar 3zcurdia commented on September 13, 2024

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.

kalasjocke avatar kalasjocke commented on September 13, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.