New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bower permission issue at openshift #29
Comments
can I know how did you solve this issue? |
set |
The best solution I found is to change HOME just for the Bower call:
|
what is r.js and build-config.js?
good luck~ |
r.js is build script for Require.js - it is not relevant for this issue. |
This solution partially worked for me, but resulted in the creation of a /Users/me/app-root/runtime/repo directory when run locally. To get around this I tried an action_hook, but that will not work for reasons described by OpenShift staff here. Instead, I moved the bower install into my application. It adds overhead to the application start time, but otherwise works well.
|
well, for each time you need to use Then, in order with RHC tool:
done! good luck with your projects |
@DLDante is this still the best most generic way to get bower install to work? |
@quantuminformation basically yes but I would avoid doing those steps manually. Remember that shell is last instance in OpenShift and you are perfectly able to do everything from package.json. See mine for working example - https://github.com/saxicek/odpad-praha8.cz/blob/master/package.json#L51. |
@JasonGhent I'm not sure if this is still relevant to you after so many months, but I encountered this problem and solved it by adding conditionals around the execution code:
It's a tad dirty (mostly due to the love hate relationship between .json and newlines), but it should be a much more elegant solution than including build code within the app proper. |
Solved it with this
|
The fix referencing @ginsederp comment worked for me: in package.json:
|
How about Openshift version 3? |
hi there.
I run mimosa on openshift.
when requiring mimosa bower. there's a permission issue when bower/node_modules/mkdirp trying to access ~/.local
node -e 'require("path/to/mimsoa-bower")'
---log---
Error: EACCES, permission denied '/var/lib/openshift/5258ab064**cf602000003/.local'
at Object.fs.mkdirSync (fs.js:642:18)
at sync (/var/lib/openshift/5258ab064382ecf602000003/app-root/runtime/repo/node_modules/mimosa-bower/node_modules/bower/node_modules/mkdirp/index.js:55:12)
at sync (/var/lib/openshift/5258ab064382ecf602000003/app-root/runtime/repo/node_modules/mimosa-bower/node_modules/bower/node_modules/mkdirp/index.js:61:24)
at sync (/var/lib/openshift/5258ab064382ecf602000003/app-root/runtime/repo/node_modules/mimosa-bower/node_modules/bower/node_modules/mkdirp/index.js:61:24)
at Function.sync (/var/lib/openshift/5258ab064382ecf602000003/app-root/runtime/repo/node_modules/mimosa-bower/node_modules/bower/node_modules/mkdirp/index.js:61:24)
at Object. (/var/lib/openshift/5258ab064382ecf602000003/app-root/runtime/repo/node_modules/mimosa-bower/node_modules/bower/lib/core/resolvers/GitResolver.js:28:8)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
The text was updated successfully, but these errors were encountered: