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
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/
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.
You can use bower init command to create bower.
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.
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:
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.
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With