Git Product home page Git Product logo

Comments (3)

thrashr888 avatar thrashr888 commented on June 20, 2024

I don't know. I'm not even sure what you're trying to do here. Those commands don't come from this repo. Can you post any other code that might help track this down?

from dokku-bower-grunt-build-plugin.

AlJohri avatar AlJohri commented on June 20, 2024

@thrashr888

I found my error. Dokku uses a root account where as heroku uses a randomly generated user account with normal privileges.

I needed to add a .npmrc file with the following:

unsafe-perm = true

What I was trying to do was instead of using a plugin such as dokku-bower-grunt-build-plugin, I wanted to simply use a postinstall script which would work on both heroku and dokku.

I added grunt-cli to my dependencies, moved my devDependencies to regular dependencies, added a postinstall script as thus:

"postinstall": "./node_modules/bower/bin/bower --allow-root install && ./node_modules/grunt-cli/bin/grunt heroku"

I then needed to add a Gemfile with compass and sass-globbing. Use ddollar's heroku-multi-buildpack and add ruby as the first buildpack before node.

I then needed to enable bundleExec within the Grunt compass contrib task.

Quite a bit more overhead but a satisfactory solution in the end.

from dokku-bower-grunt-build-plugin.

thrashr888 avatar thrashr888 commented on June 20, 2024

I think that's one of the problems with this sort of software. Any mis-matched feature means you differ from the original documentation and end up with new problems!

from dokku-bower-grunt-build-plugin.

Related Issues (6)

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.