Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

override the .local directory #62

Closed
asemoon opened this issue Jun 21, 2016 · 2 comments
Closed

override the .local directory #62

asemoon opened this issue Jun 21, 2016 · 2 comments

Comments

@asemoon
Copy link

asemoon commented Jun 21, 2016

I am running a Sails app on Openshift. grunt-bower uses ~/.local to save bower data, however, on some platforms like openshift the home directory is not writable. Is there a way to override the .local directory when setting up grunt-bower?

I have tried renaming the HOME directory before running the app, and overriding the following env variables with writable directories, however, grunt-bower seems to be ignoring these and still keeps using ~/.local and therefor sails deployment fails.
XDG_DATA_HOME XDG_CONFIG_HOME

@curist
Copy link
Owner

curist commented Jun 21, 2016

In general, this shouldn't be an issue at all.

Grunt is meant for development, and grunt-bower is for bundling your app
for deployment.

And to my knowledge, it's bower using ~/.local; so if you're looking
for overriding anything, please check bower's document.

Care to elaborate more about the use case?

Mehdi Karamenjad notifications@github.com 於 2016年6月21日 週二 下午2:13寫道:

I am running a Sails app on Openshift. grunt-bower uses ~/.local to save
bower data, however, on some platforms like openshift the home directory is
not writable. Is there a way to override the .local directory when setting
up grunt-bower?

I have tried renaming the HOME directory before running the app, and
overriding the following env variables with writable directories, however,
grunt-bower seems to be ignoring these and still keeps using ~/.local and
therefor sails deployment fails.
XDG_DATA_HOME
XDG_CONFIG_HOME


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#62, or mute the thread
https://github.com/notifications/unsubscribe/AA5KGq1KtwbnzTw2fsmdD1DC0KwxYhkCks5qN4DtgaJpZM4I6ZEZ
.

@asemoon
Copy link
Author

asemoon commented Jun 22, 2016

Thanks for the response, yeah I dug a little deeper and found the right place to override XDG_DATA_HOME, XDG_CONFIG_HOME and it did work. I am using Openshift online as Pass and per their policy ~/.local is locked down for write. After going through grunt-bower code and the following link + hours of headache, It was fixed.

https://github.com/Waxolunist/christian.sterzl.info/blob/master/resources/content/blog/bower-on-openshift.md

@asemoon asemoon closed this as completed Jun 23, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants