Trying to run a bower installation in an open access application

I just deployed the git repository to my Openshift application . The game runs locally on my computer by running

gulp 

Trying to do it on Openshift after ssh'ing

I just set up a local conversation

 npm install bower 

and then tried bower install , but it turned out the following:

 Error: EACCES, permission denied '/var/lib/openshift/53dd22222e0b8cdd07d00026f/.config' at Object.fs.mkdirSync (fs.js:642:18) 

npm installation works fine

How to start a gazebo?

Another problem is that after deploying with app-deploy inside my .git deployed files seem to be a few commits for what I had on my computer. How to get the latest files there with rhc app-deploy

I don't even see the git repo there. in cd app-root/repo/

+6
source share
1 answer

Bower expects to be able to write some of its configuration files to $HOME/.bower/ (or inside .config ), but OpenShift does not provide write access to $HOME .

You can work around this problem by adding HOME=$OPENSHIFT_DATA_DIR in front of the bower command whenever you run it:

 HOME=$OPENSHIFT_DATA_DIR bower 
+7
source

Source: https://habr.com/ru/post/980182/


All Articles