thrashr888 / dokku-bower-grunt-build-plugin Goto Github PK
View Code? Open in Web Editor NEWAdd build steps for bower and grunt
License: MIT License
Add build steps for bower and grunt
License: MIT License
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)
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 %"
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)
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
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
Is there a way to specify which app to apply this plugin to?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.