DPGUITARMAN
DPGUITARMAN

Reputation: 171

How do I edit files with Web IDE in Bluemix DevOps?

My ultimate goal is to simply edit the package.json file to add the momentjs library so I can access it my node red app running in bluemix, but my question is even more fundamental.

My setup: I have a bluemix nodejs app running a simple node red app I created. I want to use the moment.js library to do some date math and understand I need to update the dependencies file in the package.json file.

Question: When I go to my Bluemix console runtime screen for node.js I can see the package.json file and can click on it to see the contents, but can't edit. I have tried creating projects/Git and can't see this file. I can use CLI using CF and get to the file and view it but again I just don't know how to edit it.

I would really like to understand how I can see these files and edit/source code control them using the Web IDE and just can't figure it out. I do fundamentally understand source code control just don't understand how to set this all so I can specifically see this file.

Main goal is simply to update the package.json file in the app directory.

Upvotes: 0

Views: 314

Answers (1)

RiyaMRoy
RiyaMRoy

Reputation: 330

In your Bluemix Dashboard,click on your APP and in the APP Overview you will see ADD GIT BUTTON(top right corner).

Click on it and once you've added your project to GIT, you will get a GIT URL.

Go to that URL and click on EDIT CODE( you can update your package.json) and then commit the changes.

Upvotes: 0

Related Questions