Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trying to run bower install on an openshift app

i just deployed a git repo to my Openshift app. The game runs locally on my computer by running

gulp

Trying this on Openshift after ssh'ing

I just installed a local bower

npm install bower

and then tried bower install but get this:

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

npm install works fine

How do I run the bower?

Also another issue is that after deploying with app-deploy inside my directory with .git, the deployed files seem to be several commits behind what I had on my computer. How do I get the latest files on there with rhc app-deploy

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

like image 446
SuperUberDuper Avatar asked Dec 26 '14 17:12

SuperUberDuper


People also ask

What is Bower install?

Bower is a package manager for client-side libraries and components that contain HTML, CSS, JavaScript, fonts, image files, and so on. You can install, locate, upgrade, and remove Bower packages without leaving WebStorm, on the dedicated Bower page or from the command line in the built-in terminal.

What command is used install Bower globally a tool used to manage client side dependency?

You can use bower init command to create bower.

Does NPM come with node?

NPM is included with Node. js installation. After you install Node. js, verify NPM installation by writing the following command in terminal or command prompt.

How do I deploy an OpenShift application to a container?

A DeploymentConfig to deploy the application, inject configuration into the container, and redeploy it when the image changes. A Service and a Route to make the app available. A ConfigMap containing some environment overrides. Put this into a file openshift-template.yml, make any changes to suit your environment, and then apply it using:

How do I build a Kubernetes application with OpenShift?

Install and configure Openshift development tools. Create an Openshift project and MySQL deployment. Configure the application for Spring Cloud Kubernetes. Create and deploy the application in a container using the Fabric8 Maven plugin and test and scale the application. 2.

What do I do if my OpenShift installation fails?

If your installation succeeded, verify the installation . If your installation failed, retry the installation. The openshift3/ose-ansible image is a containerized version of the OpenShift Container Platform installer.

What is the openshift3/ose-Ansible file?

An example of this file is shown in Recommended Installation Practices. The openshift3/ose-ansible image is a containerized version of the OpenShift Container Platform installer.


1 Answers

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

You can work around this issue by prepending HOME=$OPENSHIFT_DATA_DIR before the bower command whenever you run it:

HOME=$OPENSHIFT_DATA_DIR bower
like image 68
ʀɣαɳĵ Avatar answered Sep 27 '22 18:09

ʀɣαɳĵ