Giter VIP home page Giter VIP logo

dokku-bower-grunt-build-plugin's Introduction

dokku-bower-grunt-build

dokku-bower-grunt-build is a plugin for dokku that runs bower install and grunt build in a post-release hook. This is mostly useful for single page apps that have an extra build step but you don't want to alter your buildpack.

Installation

On your dokku server:

git clone https://github.com/thrashr888/dokku-bower-grunt-build-plugin.git /var/lib/dokku/plugins/dokku-bower-grunt-build

All future deployments will run bower and grunt after a release.

License

The MIT License (MIT)

Copyright (c) 2013 Parham Negahdar

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

dokku-bower-grunt-build-plugin's People

Contributors

jeresig avatar knksmith57 avatar thrashr888 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dokku-bower-grunt-build-plugin's Issues

raise error when push to a dokku server

I'm using Rails 4 and rails-bower to manage js file.
I do clone the plugin and install it on dokku server

~# dokku plugins
/var/lib/dokku/plugins/dokku-bower-grunt-build/

and have a .env file contain export url
And how to deploy my rails app by using your buildpack?
I meet an error when pushing to server

 ! [remote rejected] dokku -> master (pre-receive hook declined)

Error finding npm path

Using your command:

find / -name npm | tail -1 | xargs -I % sh -c "dirname %"

you find the path: /app/.heroku/node/lib/node_modules/npm/bin/, instead of /app/.heroku/node/bin/

you should change to:

find / -name npm | head -1 | xargs -I % sh -c "dirname %"

npm command not found?

I feel like i have to be missing something obvious here, but I've been trying to get this plugin to work for a while now. I don't know where the command winds up getting run from, but it would appear like something is not working, because in the build I initially got:

-----> Building Node app ...
remote: /bin/bash: line 1: server/prepare_dist: No such file or directory

then after removing that line from the plugin i get

remote: /bin/bash: line 1: npm: command not found

plugin not running

I don't see anything output in the logs from this plugin but when I run dokku plugins list I see the plugin listed. Any idea on how I can troubleshoot this? I'm a dokku noob so I'm not really sure where to start.

Thanks

npm post-install script?

Do you know anything more about why doing bower install and grunt heroku in a post-install script works on heroku but not on dokku?

I believe it has to do with the fact that dokku runs the app as root but I'm not entirely sure

npm WARN cannot run in wd [email protected] ./node_modules/bower/bin/bower --allow-root install && ./node_modules/grunt-cli/bin/grunt heroku (wd=/build/app)

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.